Add WebKit brace style configuration option.
authorRoman Kashitsyn <romankashicin@gmail.com>
Mon, 10 Aug 2015 13:43:19 +0000 (13:43 +0000)
committerRoman Kashitsyn <romankashicin@gmail.com>
Mon, 10 Aug 2015 13:43:19 +0000 (13:43 +0000)
commit291f64fd03a8057d4b260a3b74a7d109c017111a
tree3a305ba88a77de87d6a79d9fbf4554cb71394e61
parent7d21eb3506fb64092aacb140b83b0fc59373661c
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
clang/docs/ClangFormatStyleOptions.rst
clang/include/clang/Format/Format.h
clang/lib/Format/Format.cpp
clang/unittests/Format/FormatTest.cpp