diff options
author | Gedare Bloom <gedare@rtems.org> | 2025-02-07 23:10:35 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-07 22:10:35 -0800 |
commit | e0a21e23a7aa6acf3e07b866c3c599db5eb4b67f (patch) | |
tree | e692ea44452bf322e295173c53cb74ee7b45da1c /clang/unittests/Format/ConfigParseTest.cpp | |
parent | de12bf508970ef9c0612c3950410530c4b822e6e (diff) | |
download | llvm-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.cpp | 1 |
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); |