Mercurial > hg > CbC > CbC_llvm
diff flang/docs/C++style.md @ 223:5f17cb93ff66 llvm-original
LLVM13 (2021/7/18)
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 18 Jul 2021 22:43:00 +0900 |
parents | 79ff65ed7e25 |
children | c4bab56944e8 |
line wrap: on
line diff
--- a/flang/docs/C++style.md Sun Jul 18 22:10:01 2021 +0900 +++ b/flang/docs/C++style.md Sun Jul 18 22:43:00 2021 +0900 @@ -115,7 +115,10 @@ align vertically -- they are maintenance problems. Always wrap the bodies of `if()`, `else`, `while()`, `for()`, `do`, &c. -with braces, even when the body is a single statement or empty. The +with braces, even when the body is a single statement or empty. Note that this +diverges from the LLVM coding style. In parts of the codebase that make heavy +use of LLVM or MLIR APIs (e.g. the Lower and Optimizer libraries), use the +LLVM style instead. The opening `{` goes on the end of the line, not on the next line. Functions also put the opening `{` after the formal arguments or new-style result type, not on the next