diff options
| author | Alexander Kornienko <alexfh@google.com> | 2013-12-10 15:42:15 +0000 |
|---|---|---|
| committer | Alexander Kornienko <alexfh@google.com> | 2013-12-10 15:42:15 +0000 |
| commit | fe7a57fa780144c89c81e2a0cf4401af8d347891 (patch) | |
| tree | 6f28ce9ab17333cb280f09e5a57afe182bb6dfb6 /clang/unittests/Format/FormatTest.cpp | |
| parent | ff3b79aead56de2ddb809cacd6ed6e9a203639dd (diff) | |
| download | bcm5719-llvm-fe7a57fa780144c89c81e2a0cf4401af8d347891.tar.gz bcm5719-llvm-fe7a57fa780144c89c81e2a0cf4401af8d347891.zip | |
Early attempts to format in GNU style.
Summary:
This still misses a few important features, so there's no mention of
this style in the help message, but a few style rules are implemented.
Reviewers: djasper
Reviewed By: djasper
CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D2371
llvm-svn: 196928
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
| -rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 562e67d2a9d..91519d8dad8 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -6992,6 +6992,11 @@ TEST_F(FormatTest, GetsPredefinedStyleByName) { EXPECT_TRUE(getPredefinedStyle("wEbKit", FormatStyle::LK_Cpp, &Styles[2])); EXPECT_ALL_STYLES_EQUAL(Styles); + Styles[0] = getGNUStyle(); + EXPECT_TRUE(getPredefinedStyle("GNU", FormatStyle::LK_Cpp, &Styles[1])); + EXPECT_TRUE(getPredefinedStyle("gnU", FormatStyle::LK_Cpp, &Styles[2])); + EXPECT_ALL_STYLES_EQUAL(Styles); + EXPECT_FALSE(getPredefinedStyle("qwerty", FormatStyle::LK_Cpp, &Styles[0])); } |

