aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Format/ConfigParseTest.cpp
diff options
context:
space:
mode:
authorOwen Pan <owenpiano@gmail.com>2024-02-07 20:24:44 -0800
committerGitHub <noreply@github.com>2024-02-07 20:24:44 -0800
commitd033799050b7bda70d80a933d5d99b7088a72a95 (patch)
tree086c70ef55d2f6736a73aa443451a2724dc901f6 /clang/unittests/Format/ConfigParseTest.cpp
parent05091aa3ac53a13d08c78882c0c2035e58a1b4c4 (diff)
downloadllvm-d033799050b7bda70d80a933d5d99b7088a72a95.zip
llvm-d033799050b7bda70d80a933d5d99b7088a72a95.tar.gz
llvm-d033799050b7bda70d80a933d5d99b7088a72a95.tar.bz2
[clang-format] Add Leave to AlwaysBreakTemplateDeclarations (#80569)
Closes #78067.
Diffstat (limited to 'clang/unittests/Format/ConfigParseTest.cpp')
-rw-r--r--clang/unittests/Format/ConfigParseTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/unittests/Format/ConfigParseTest.cpp b/clang/unittests/Format/ConfigParseTest.cpp
index 3f1fc893..7493b0a 100644
--- a/clang/unittests/Format/ConfigParseTest.cpp
+++ b/clang/unittests/Format/ConfigParseTest.cpp
@@ -695,6 +695,8 @@ TEST(ConfigParseTest, ParsesConfiguration) {
FormatStyle::RTBS_TopLevelDefinitions);
Style.AlwaysBreakTemplateDeclarations = FormatStyle::BTDS_Yes;
+ CHECK_PARSE("AlwaysBreakTemplateDeclarations: Leave",
+ AlwaysBreakTemplateDeclarations, FormatStyle::BTDS_Leave);
CHECK_PARSE("AlwaysBreakTemplateDeclarations: No",
AlwaysBreakTemplateDeclarations, FormatStyle::BTDS_No);
CHECK_PARSE("AlwaysBreakTemplateDeclarations: MultiLine",