diff options
author | Jan Korous <jkorous@apple.com> | 2019-06-05 20:59:48 +0000 |
---|---|---|
committer | Jan Korous <jkorous@apple.com> | 2019-06-05 20:59:48 +0000 |
commit | a3701caad826a6da3915a1b485cbe0a333e6a484 (patch) | |
tree | 163031f5a0ea8608e8af987755d2ebc2497cf506 /clang/docs | |
parent | ba86f2a22e7a95020e924baf9203ccfd10df5162 (diff) | |
download | bcm5719-llvm-a3701caad826a6da3915a1b485cbe0a333e6a484.tar.gz bcm5719-llvm-a3701caad826a6da3915a1b485cbe0a333e6a484.zip |
[clang-format][NFC] Fix BS_Allman style example in the header docs are generated from
Differential Revision: https://reviews.llvm.org/D61729
llvm-svn: 362646
Diffstat (limited to 'clang/docs')
-rw-r--r-- | clang/docs/ClangFormatStyleOptions.rst | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/clang/docs/ClangFormatStyleOptions.rst b/clang/docs/ClangFormatStyleOptions.rst index 342ecc7914a..8bd0e9c8f7e 100644 --- a/clang/docs/ClangFormatStyleOptions.rst +++ b/clang/docs/ClangFormatStyleOptions.rst @@ -1059,19 +1059,28 @@ the configuration (without a prefix: ``Auto``). .. code-block:: c++ - try { + try + { foo(); } - catch () { + catch () + { } void foo() { bar(); } - class foo { + class foo + { }; - if (foo()) { + if (foo()) + { } - else { + else + { } - enum X : int { A, B }; + enum X : int + { + A, + B + }; * ``BS_GNU`` (in configuration: ``GNU``) Always break before braces and add an extra level of indentation to |