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 2d6fb24 commit dddce94Copy full SHA for dddce94
llvm/docs/CodingStandards.rst
@@ -1713,6 +1713,14 @@ 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.
1717
+ if (isa<FunctionDecl>(D)) {
1718
+ verifyFunctionDecl(D);
1719
+ handleFunctionDecl(D);
1720
+ } else {
1721
+ handleOtherDecl(D);
1722
+ }
1723
+
1724
// This should also omit braces. The `for` loop contains only a single
1725
// statement, so it shouldn't have braces. The `if` also only contains a
1726
// single simple statement (the `for` loop), so it also should omit braces.
0 commit comments