aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Format/ConfigParseTest.cpp
diff options
context:
space:
mode:
authorOwen Pan <owenpiano@gmail.com>2025-04-29 19:22:53 -0700
committerGitHub <noreply@github.com>2025-04-29 19:22:53 -0700
commitb8bb1ccb4f9126d1bc9817be24e17f186a75a08b (patch)
tree081a4bd5a0cfb0e337a235c720dd7120c6dd85b3 /clang/unittests/Format/ConfigParseTest.cpp
parentf1750300aad0e49383cd4b206e2354f1300a40a8 (diff)
downloadllvm-b8bb1ccb4f9126d1bc9817be24e17f186a75a08b.zip
llvm-b8bb1ccb4f9126d1bc9817be24e17f186a75a08b.tar.gz
llvm-b8bb1ccb4f9126d1bc9817be24e17f186a75a08b.tar.bz2
[clang-format] Add OneLineFormatOffRegex option (#137577)
Close #54334
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 2b08b79..f7ab554 100644
--- a/clang/unittests/Format/ConfigParseTest.cpp
+++ b/clang/unittests/Format/ConfigParseTest.cpp
@@ -295,6 +295,7 @@ TEST(ConfigParseTest, ParsesConfiguration) {
FormatStyle Style = {};
Style.Language = FormatStyle::LK_Cpp;
CHECK_PARSE("CommentPragmas: '// abc$'", CommentPragmas, "// abc$");
+ CHECK_PARSE("OneLineFormatOffRegex: // ab$", OneLineFormatOffRegex, "// ab$");
Style.QualifierAlignment = FormatStyle::QAS_Right;
CHECK_PARSE("QualifierAlignment: Leave", QualifierAlignment,