commit | daa07e9ee76d438efa3c7e2c54b4d3d3ed19ea27 | [log] [tgz] |
---|---|---|
author | Alexander Kornienko <alexfh@google.com> | Tue Sep 10 13:41:43 2013 +0000 |
committer | Alexander Kornienko <alexfh@google.com> | Tue Sep 10 13:41:43 2013 +0000 |
tree | 52f48e4df020730ebff9a60522428bd12aa0e871 | |
parent | 6f6154c5f5976e3e57f34f6a755bdfa95b7ff745 [diff] [blame] |
Don't divide L and #x in macro definitions. Fixes http://llvm.org/PR17144 Reviewers: djasper Reviewed By: djasper CC: cfe-commits, klimek Differential Revision: http://llvm-reviews.chandlerc.com/D1639 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190408 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index c7991b4..7f6956e 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp
@@ -1930,6 +1930,7 @@ } TEST_F(FormatTest, HashInMacroDefinition) { + EXPECT_EQ("#define A(c) L#c", format("#define A(c) L#c", getLLVMStyle())); verifyFormat("#define A \\\n b #c;", getLLVMStyleWithColumns(11)); verifyFormat("#define A \\\n" " { \\\n"