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 a8b5115 commit 84b99b4Copy full SHA for 84b99b4
llvm/docs/CodingStandards.rst
@@ -1713,10 +1713,13 @@ would help to avoid running into a "dangling else" situation.
1713
handleOtherDecl(D);
1714
}
1715
1716
- // Use braces for the `else` block to keep it uniform with the `if` block.
+ // Use braces for the `else if` and `else` block to keep it uniform with the
1717
+ // `if` block.
1718
if (isa<FunctionDecl>(D)) {
1719
verifyFunctionDecl(D);
1720
handleFunctionDecl(D);
1721
+ } else if (isa<GlobalVarDecl>(D)) {
1722
+ handleGlobalVarDecl(D);
1723
} else {
1724
1725
0 commit comments