diff options
| author | Daniel Jasper <djasper@google.com> | 2014-08-13 08:29:18 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2014-08-13 08:29:18 +0000 |
| commit | 343643b9798c8a6f0e236453bf61985dc5eb4438 (patch) | |
| tree | 8e67b7a6f7ff5276149f90f26ab691981a7070d9 /clang/unittests/Format/FormatTest.cpp | |
| parent | 51bbd011c32e9bbb5af12effc526358efece498c (diff) | |
| download | bcm5719-llvm-343643b9798c8a6f0e236453bf61985dc5eb4438.tar.gz bcm5719-llvm-343643b9798c8a6f0e236453bf61985dc5eb4438.zip | |
clang-format: Understand #defines defining system includes.
Before:
#define MY_IMPORT < a / b >
After:
#define MY_IMPORT <a/b>
llvm-svn: 215527
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
| -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 f36eede8fee..1bd52aa9b5e 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -5234,6 +5234,8 @@ TEST_F(FormatTest, HandlesIncludeDirectives) { "#include <strstream>\n" "#endif"); + verifyFormat("#define MY_IMPORT <a/b>"); + // Protocol buffer definition or missing "#". verifyFormat("import \"aaaaaaaaaaaaaaaaa/aaaaaaaaaaaaaaa\";", getLLVMStyleWithColumns(30)); |

