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

Jon Roelofs via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 1 12:59:51 PDT 2020


jroelofs accepted this revision.
jroelofs added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: llvm/docs/CodingStandards.rst:1582
+clear that it is a single line. Note that comments should only be hoisted for loops and
+'if', and not in 'else if' or 'else', where it would be unclear whether the comment
+belonged to the preceeding condition, or the 'else'.
----------------
Elsewhere in this file uses double backticks around keywords that are inline in text.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D80947





More information about the llvm-commits mailing list