summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r--clang/unittests/Format/FormatTest.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index 61d06145950..d5b9f27699d 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -5472,6 +5472,7 @@ TEST_F(FormatTest, ParsesConfiguration) {
EXPECT_FALSE(Style.FIELD);
CHECK_PARSE_BOOL(AlignEscapedNewlinesLeft);
+ CHECK_PARSE_BOOL(AlignTrailingComments);
CHECK_PARSE_BOOL(AllowAllParametersOfDeclarationOnNextLine);
CHECK_PARSE_BOOL(AllowShortIfStatementsOnASingleLine);
CHECK_PARSE_BOOL(AllowShortLoopsOnASingleLine);
@@ -5679,9 +5680,9 @@ TEST_F(FormatTest, FormatsWithWebKitStyle) {
Style);
// Do not align comments.
- // FIXME: Implement option to suppress comment alignment.
- // verifyFormat("int a; // Do not\n"
- // "double b; // align comments.");
+ verifyFormat("int a; // Do not\n"
+ "double b; // align comments.",
+ Style);
// Accept input's line breaks.
EXPECT_EQ("if (aaaaaaaaaaaaaaa\n"
OpenPOWER on IntegriCloud