aboutsummaryrefslogtreecommitdiff
path: root/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-02-05 09:34:14 +0000
committerDaniel Jasper <djasper@google.com>2013-02-05 09:34:14 +0000
commit5b7e7b0ec77f49c1b24deffc9b7032ca16ca9f0d (patch)
tree49c95610ac2906102d42d9c68551dd62c32fb9b3 /unittests/Format/FormatTest.cpp
parent8fcbb8dfbc28b6279d22144e10ade401a6c03e9e (diff)
Fix formatting regression introduced by r174307.
In preprocessor definitions, we would not parse all the tokens and thus not annotate them anymore. This led to a wrong formatting of comments in google style: #endif // HEADER_GUARD -- requires two spaces git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174361 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r--unittests/Format/FormatTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp
index 5b99716fdc..f5606cb529 100644
--- a/unittests/Format/FormatTest.cpp
+++ b/unittests/Format/FormatTest.cpp
@@ -479,6 +479,8 @@ TEST_F(FormatTest, UnderstandsSingleLineComments) {
verifyFormat("someFunction(anotherFunction( // Force break.\n"
" parameter));");
+
+ verifyGoogleFormat("#endif // HEADER_GUARD");
}
TEST_F(FormatTest, UnderstandsMultiLineComments) {