aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Format/Format.h
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-01-23 10:08:28 +0000
committerDaniel Jasper <djasper@google.com>2013-01-23 10:08:28 +0000
commit8f4bd7a20f89d9065bebadd270e6bc7822257d37 (patch)
treef3bb9ff0fda17bf12c0dd8a987b337740fdbb316 /include/clang/Format/Format.h
parent70b03f4edaefcc5b9aa2e084d1c12e9d91b32a77 (diff)
Add option to allow putting all parameters onto the next line.
This only affects styles where BinPackParameters is false. With AllowAllParametersOnNextLine: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa( aaaaaaaaaa, aaaaaaaaaa, aaaaaaaaaa, aaaaaaaaaaa, aaaaaaaaaaa); Without it: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaa, aaaaaaaaaa, aaaaaaaaaa, aaaaaaaaaaa, aaaaaaaaaaa); git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173246 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Format/Format.h')
-rw-r--r--include/clang/Format/Format.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/Format/Format.h b/include/clang/Format/Format.h
index ba6a3d9e5f..78523ea36e 100644
--- a/include/clang/Format/Format.h
+++ b/include/clang/Format/Format.h
@@ -61,6 +61,10 @@ struct FormatStyle {
/// will either all be on the same line or will have one line each.
bool BinPackParameters;
+ /// \brief Allow putting all parameters of a function declaration/call onto
+ /// the next line without calling this bin-packing.
+ bool AllowAllParametersOnNextLine;
+
/// \brief If the constructor initializers don't fit on a line, put each
/// initializer on its own line.
bool ConstructorInitializerAllOnOneLineOrOnePerLine;