diff options
author | Daniel Jasper <djasper@google.com> | 2013-01-18 09:19:33 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-01-18 09:19:33 +0000 |
commit | 997b08ce3cb6d4de8c2ddb784884aea5f833c038 (patch) | |
tree | dbf9a5f11d718a5b2d8d164af9f32f5ef398e16d /clang/unittests/Format/FormatTest.cpp | |
parent | aa701fa3adbce77357d60c8a494c6492fd1e206a (diff) | |
download | bcm5719-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.cpp | 5 |
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" |