[PATCH] D80947: Add to the Coding Standard our that single-line bodies omit braces

Hubert Tong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 3 20:21:43 PDT 2020


hubert.reinterpretcast added inline comments.


================
Comment at: llvm/docs/CodingStandards.rst:1576
+
+When writing the body of an `if`, `else`, or loop statement, omit the braces to avoid
+unnecessary and otherwise meaningless code. However, braces should be used
----------------
There seems to be some duplication because the "old" version of the write-up is still here.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80947/new/

https://reviews.llvm.org/D80947





More information about the llvm-commits mailing list