aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Format/ConfigParseTest.cpp
diff options
context:
space:
mode:
authorOwen Pan <owenpiano@gmail.com>2024-05-27 15:20:58 -0700
committerGitHub <noreply@github.com>2024-05-27 15:20:58 -0700
commitdba2aa265c5f2ef774c2812cf6ffdea8dd784e09 (patch)
tree6989e0b77f93696551f39d5d0d86bedd35321b77 /clang/unittests/Format/ConfigParseTest.cpp
parent434ee06d77613df23a2ece62a62bcd62c13121d2 (diff)
downloadllvm-dba2aa265c5f2ef774c2812cf6ffdea8dd784e09.zip
llvm-dba2aa265c5f2ef774c2812cf6ffdea8dd784e09.tar.gz
llvm-dba2aa265c5f2ef774c2812cf6ffdea8dd784e09.tar.bz2
[clang-format] Add LeftWithLastLine to AlignEscapedNewlines option (#93402)
Closes #92999.
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 82e72f0..ff3ced3 100644
--- a/clang/unittests/Format/ConfigParseTest.cpp
+++ b/clang/unittests/Format/ConfigParseTest.cpp
@@ -480,6 +480,8 @@ TEST(ConfigParseTest, ParsesConfiguration) {
FormatStyle::ENAS_DontAlign);
CHECK_PARSE("AlignEscapedNewlines: Left", AlignEscapedNewlines,
FormatStyle::ENAS_Left);
+ CHECK_PARSE("AlignEscapedNewlines: LeftWithLastLine", AlignEscapedNewlines,
+ FormatStyle::ENAS_LeftWithLastLine);
CHECK_PARSE("AlignEscapedNewlines: Right", AlignEscapedNewlines,
FormatStyle::ENAS_Right);
// For backward compatibility: