diff options
author | Roman Kashitsyn <romankashicin@gmail.com> | 2015-08-10 13:43:19 +0000 |
---|---|---|
committer | Roman Kashitsyn <romankashicin@gmail.com> | 2015-08-10 13:43:19 +0000 |
commit | 291f64fd03a8057d4b260a3b74a7d109c017111a (patch) | |
tree | 3a305ba88a77de87d6a79d9fbf4554cb71394e61 /clang/docs | |
parent | 7d21eb3506fb64092aacb140b83b0fc59373661c (diff) | |
download | bcm5719-llvm-291f64fd03a8057d4b260a3b74a7d109c017111a.tar.gz bcm5719-llvm-291f64fd03a8057d4b260a3b74a7d109c017111a.zip |
Add WebKit brace style configuration option.
Summary:
Add brace style `BS_WebKit` as described on https://www.webkit.org/coding/coding-style.html:
* Function definitions: place each brace on its own line.
* Other braces: place the open brace on the line preceding the code block; place the close brace on its own line.
Set brace style used in `getWebKitStyle()` to the newly added `BS_WebKit`.
Reviewers: djasper, klimek
Subscribers: klimek, cfe-commits
Differential Revision: http://reviews.llvm.org/D11837
llvm-svn: 244446
Diffstat (limited to 'clang/docs')
-rw-r--r-- | clang/docs/ClangFormatStyleOptions.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/docs/ClangFormatStyleOptions.rst b/clang/docs/ClangFormatStyleOptions.rst index 031daeeaa12..1d61197c7db 100644 --- a/clang/docs/ClangFormatStyleOptions.rst +++ b/clang/docs/ClangFormatStyleOptions.rst @@ -279,13 +279,15 @@ the configuration (without a prefix: ``Auto``). Like ``Attach``, but break before braces on enum, function, and record definitions. * ``BS_Stroustrup`` (in configuration: ``Stroustrup``) - Like ``Attach``, but break before function definitions, and 'else'. + Like ``Attach``, but break before function definitions, 'catch', and 'else'. * ``BS_Allman`` (in configuration: ``Allman``) Always break before braces. * ``BS_GNU`` (in configuration: ``GNU``) Always break before braces and add an extra level of indentation to braces of control statements, not to those of class, function or other definitions. + * ``BS_WebKit`` (in configuration: ``WebKit``) + Like ``Attach``, but break before functions. **BreakBeforeTernaryOperators** (``bool``) |