diff options
author | Daniel Jasper <djasper@google.com> | 2015-10-06 12:11:51 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2015-10-06 12:11:51 +0000 |
commit | b5bda7c0b0994cdcc78a874c10fa5d2a42e47745 (patch) | |
tree | 4d8ac28603bd0b73d606401bcbc7209d02bc8bda /clang/docs/ClangFormatStyleOptions.rst | |
parent | d01ffbdb1bb0fb9cc6009e74686db94bb7838d02 (diff) | |
download | bcm5719-llvm-b5bda7c0b0994cdcc78a874c10fa5d2a42e47745.tar.gz bcm5719-llvm-b5bda7c0b0994cdcc78a874c10fa5d2a42e47745.zip |
clang-format: Add empty line before code-blocks in Docs.
llvm-svn: 249394
Diffstat (limited to 'clang/docs/ClangFormatStyleOptions.rst')
-rw-r--r-- | clang/docs/ClangFormatStyleOptions.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/docs/ClangFormatStyleOptions.rst b/clang/docs/ClangFormatStyleOptions.rst index fd14d90ff53..7d31a5869ce 100644 --- a/clang/docs/ClangFormatStyleOptions.rst +++ b/clang/docs/ClangFormatStyleOptions.rst @@ -155,6 +155,7 @@ the configuration (without a prefix: ``Auto``). This applies to round brackets (parentheses), angle brackets and square brackets. This will result in formattings like + .. code-block:: c++ someLongFunction(argument1, argument2); @@ -164,6 +165,7 @@ the configuration (without a prefix: ``Auto``). This will align the assignment operators of consecutive lines. This will result in formattings like + .. code-block:: c++ int aaaa = 12; int b = 23; @@ -174,6 +176,7 @@ the configuration (without a prefix: ``Auto``). This will align the declaration names of consecutive lines. This will result in formattings like + .. code-block:: c++ int aaaa = 12; float b = 23; @@ -389,11 +392,13 @@ the configuration (without a prefix: ``Auto``). instead of as function calls. These are expected to be macros of the form: + .. code-block:: c++ FOREACH(<variable-declaration>, ...) <loop-body> In the .clang-format configuration file, this can be configured like: + .. code-block:: c++ ForEachMacros: ['RANGES_FOR', 'FOREACH'] @@ -415,6 +420,7 @@ the configuration (without a prefix: ``Auto``). (http://llvm.org/docs/CodingStandards.html#include-style). To configure this in the .clang-format file, use: + .. code-block:: c++ IncludeCategories: - Regex: '^"(llvm|llvm-c|clang|clang-c)/' |