diff options
author | Daniel Jasper <djasper@google.com> | 2012-12-21 17:58:39 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2012-12-21 17:58:39 +0000 |
commit | cd1a32b1f02016fe5ebb1142aadccc54bbdf5d89 (patch) | |
tree | 600d9bf0754ff59ecde7103325492aae7c5e48c4 /unittests/Format/FormatTest.cpp | |
parent | ab13751d76be4473e9317d3885cb351b79f18492 (diff) |
clang-format: No spaces around directory specifiers
This fixes PR14683. We used to format like this:
#include <a / b>
And this patch changes this to:
#include <a/b>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170910 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index c8088e2c0a..a08f7c6cf7 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -613,6 +613,7 @@ TEST_F(FormatTest, LineStartsWithSpecialCharacter) { TEST_F(FormatTest, HandlesIncludeDirectives) { EXPECT_EQ("#include <string>\n", format("#include <string>\n")); + EXPECT_EQ("#include <a/b/c.h>\n", format("#include <a/b/c.h>\n")); EXPECT_EQ("#include \"a/b/string\"\n", format("#include \"a/b/string\"\n")); EXPECT_EQ("#include \"string.h\"\n", format("#include \"string.h\"\n")); EXPECT_EQ("#include \"string.h\"\n", format("#include \"string.h\"\n")); |