summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-01-18 09:19:33 +0000
committerDaniel Jasper <djasper@google.com>2013-01-18 09:19:33 +0000
commit997b08ce3cb6d4de8c2ddb784884aea5f833c038 (patch)
treedbf9a5f11d718a5b2d8d164af9f32f5ef398e16d /clang/unittests/Format/FormatTest.cpp
parentaa701fa3adbce77357d60c8a494c6492fd1e206a (diff)
downloadbcm5719-llvm-997b08ce3cb6d4de8c2ddb784884aea5f833c038.tar.gz
bcm5719-llvm-997b08ce3cb6d4de8c2ddb784884aea5f833c038.zip
Also align trailing line comments in include directives.
Before: #include <a> // for x #include <a/b/c> // for yz After: #include <a> // for x #include <a/b/c> // for yz llvm-svn: 172799
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r--clang/unittests/Format/FormatTest.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index 7013eb14172..51904d7d3fa 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -386,7 +386,10 @@ TEST_F(FormatTest, UnderstandsSingleLineComments) {
"int bbbbbbbbbbbbbbbbbbbbb; // comment\n"
"int ccccccccccccccccccc; // comment");
-
+ verifyFormat("#include \"a\" // comment\n"
+ "#include \"a/b/c\" // comment");
+ verifyFormat("#include <a> // comment\n"
+ "#include <a/b/c> // comment");
verifyFormat("enum E {\n"
" // comment\n"
OpenPOWER on IntegriCloud