summaryrefslogtreecommitdiffstats
path: root/clang/docs
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-10-09 09:52:05 +0000
committerDaniel Jasper <djasper@google.com>2014-10-09 09:52:05 +0000
commit18210d7d2f6ecf5f722b2c32023b7c831e11e534 (patch)
tree62334bdd7a250486e233bc8fb01ecf4648c6b902 /clang/docs
parente17b55be699f00b349eda9a7d64842af2bd1dd33 (diff)
downloadbcm5719-llvm-18210d7d2f6ecf5f722b2c32023b7c831e11e534.tar.gz
bcm5719-llvm-18210d7d2f6ecf5f722b2c32023b7c831e11e534.zip
clang-format: Add option to control call argument bin-packing separately
This is desirable for the Chromium style guide: http://www.chromium.org/developers/coding-style llvm-svn: 219400
Diffstat (limited to 'clang/docs')
-rw-r--r--clang/docs/ClangFormatStyleOptions.rst12
1 files changed, 9 insertions, 3 deletions
diff --git a/clang/docs/ClangFormatStyleOptions.rst b/clang/docs/ClangFormatStyleOptions.rst
index 95f85ba3dfd..530f7c5bf83 100644
--- a/clang/docs/ClangFormatStyleOptions.rst
+++ b/clang/docs/ClangFormatStyleOptions.rst
@@ -205,9 +205,13 @@ the configuration (without a prefix: ``Auto``).
If ``true``, always break after the ``template<...>`` of a
template declaration.
+**BinPackArguments** (``bool``)
+ If ``false``, a function call's arguments will either be all on the
+ same line or will have one line each.
+
**BinPackParameters** (``bool``)
- If ``false``, a function call's or function definition's parameters
- will either all be on the same line or will have one line each.
+ If ``false``, a function declaration's or function definition's
+ parameters will either all be on the same line or will have one line each.
**BreakBeforeBinaryOperators** (``BinaryOperatorStyle``)
The way to wrap binary operators.
@@ -288,7 +292,7 @@ the configuration (without a prefix: ``Auto``).
**DerivePointerAlignment** (``bool``)
If ``true``, analyze the formatted file for the most common
- alignment of & and ``*``. ``PointerAlignment`` is then used only as fallback.
+ alignment of & and *. ``PointerAlignment`` is then used only as fallback.
**DisableFormat** (``bool``)
Disables formatting at all.
@@ -342,6 +346,8 @@ the configuration (without a prefix: ``Auto``).
Do not use.
* ``LK_Cpp`` (in configuration: ``Cpp``)
Should be used for C, C++, ObjectiveC, ObjectiveC++.
+ * ``LK_Java`` (in configuration: ``Java``)
+ Should be used for Java.
* ``LK_JavaScript`` (in configuration: ``JavaScript``)
Should be used for JavaScript.
* ``LK_Proto`` (in configuration: ``Proto``)
OpenPOWER on IntegriCloud