We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f51038 commit 57e03cdCopy full SHA for 57e03cd
llvm/docs/CodingStandards.rst
@@ -1640,6 +1640,10 @@ you have no immediate way to tell if this function is local to the file. In
1640
contrast, when the function is marked static, you don't need to cross-reference
1641
faraway places in the file to tell that the function is local.
1642
1643
+Related to this issue, when non-member functions or variables are defined in a
1644
+`.cpp`` file and need not be referenced outside that file, make them `static`.
1645
+
1646
1647
Don't Use Braces on Simple Single-Statement Bodies of if/else/loop Statements
1648
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1649
0 commit comments