[PATCH] D26943: [CodingStandards] Add style guide rule about "if" statements and loops.
Justin Lebar via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 21 15:28:54 PST 2016
jlebar added a comment.
> I feel like this should live down near "Don’t use else after a return"
I put it here because the overall section header is "Mechanical Source Issues". But now I see that e.g. "Spaces Before Parentheses" is down at the bottom of the doc, so...I now have no idea how this is structured.
> to make it clear we want braces for if else.
We do? Elsewhere in the style guide they have unbraced if/else, e.g. following "or better yet (in this case)".
https://reviews.llvm.org/D26943
More information about the llvm-commits
mailing list