diff options
| author | Daniel Jasper <djasper@google.com> | 2013-07-31 23:55:15 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2013-07-31 23:55:15 +0000 |
| commit | 552f4a7e27a99d6a56bd4cefe168ad7b5ce570bb (patch) | |
| tree | 8d03e7ad520c16d9d58b5a33ba7f5477f97ef5e4 /clang/unittests/Format/FormatTest.cpp | |
| parent | 527abc9b09ce2130c5788b0939e8d66f0b5dbae5 (diff) | |
| download | bcm5719-llvm-552f4a7e27a99d6a56bd4cefe168ad7b5ce570bb.tar.gz bcm5719-llvm-552f4a7e27a99d6a56bd4cefe168ad7b5ce570bb.zip | |
clang-format: Make alignment of trailing comments optional ..
.. in order to support WebKit style properly.
llvm-svn: 187549
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
| -rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 7 |
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" |

