[PATCH] D82594: Clarify a bit the guideline on omitting braces, including more examples (NFC)

Hubert Tong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 1 21:39:10 PDT 2020


hubert.reinterpretcast added inline comments.


================
Comment at: llvm/docs/CodingStandards.rst:1581
+We consider that readability is harmed when omitting the brace in the presence
+of a single statement the is accompanied by a comment (assuming the comment
+can't be hoisted above the ``if`` or loop statement, see below).
----------------
Typo fix: s/the is/that is/;


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D82594





More information about the llvm-commits mailing list