aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Format/ConfigParseTest.cpp
diff options
context:
space:
mode:
authorGedare Bloom <gedare@rtems.org>2025-02-07 23:10:35 -0700
committerGitHub <noreply@github.com>2025-02-07 22:10:35 -0800
commite0a21e23a7aa6acf3e07b866c3c599db5eb4b67f (patch)
treee692ea44452bf322e295173c53cb74ee7b45da1c /clang/unittests/Format/ConfigParseTest.cpp
parentde12bf508970ef9c0612c3950410530c4b822e6e (diff)
downloadllvm-e0a21e23a7aa6acf3e07b866c3c599db5eb4b67f.zip
llvm-e0a21e23a7aa6acf3e07b866c3c599db5eb4b67f.tar.gz
llvm-e0a21e23a7aa6acf3e07b866c3c599db5eb4b67f.tar.bz2
[clang-format] Add BinPackLongBracedList style option (#112482)
The use of Cpp11BracedListStyle with BinPackArguments=False avoids bin packing until reaching a hard-coded limit of 20 items. This is an arbitrary choice. Introduce a new style option to allow disabling this limit.
Diffstat (limited to 'clang/unittests/Format/ConfigParseTest.cpp')
-rw-r--r--clang/unittests/Format/ConfigParseTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/unittests/Format/ConfigParseTest.cpp b/clang/unittests/Format/ConfigParseTest.cpp
index 0cb2a12..9cd2629 100644
--- a/clang/unittests/Format/ConfigParseTest.cpp
+++ b/clang/unittests/Format/ConfigParseTest.cpp
@@ -168,6 +168,7 @@ TEST(ConfigParseTest, ParsesConfigurationBools) {
CHECK_PARSE_BOOL(AllowShortLoopsOnASingleLine);
CHECK_PARSE_BOOL(AllowShortNamespacesOnASingleLine);
CHECK_PARSE_BOOL(BinPackArguments);
+ CHECK_PARSE_BOOL(BinPackLongBracedList);
CHECK_PARSE_BOOL(BreakAdjacentStringLiterals);
CHECK_PARSE_BOOL(BreakAfterJavaFieldAnnotations);
CHECK_PARSE_BOOL(BreakBeforeTemplateCloser);