diff options
| author | Daniel Jasper <djasper@google.com> | 2013-02-05 09:34:14 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2013-02-05 09:34:14 +0000 |
| commit | a885dbeb966bc33759b4f0fd89d7f73780a546b9 (patch) | |
| tree | 4f681aa6f7c213e03fd810d7af7b451febfb5d97 /clang/unittests/Format | |
| parent | 428a06cc7521d64429ea3ca8e5515286cdca53b8 (diff) | |
| download | bcm5719-llvm-a885dbeb966bc33759b4f0fd89d7f73780a546b9.tar.gz bcm5719-llvm-a885dbeb966bc33759b4f0fd89d7f73780a546b9.zip | |
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
llvm-svn: 174361
Diffstat (limited to 'clang/unittests/Format')
| -rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 5b99716fdca..f5606cb5290 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/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) { |

