diff options
author | Daniel Jasper <djasper@google.com> | 2013-01-08 14:56:18 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-01-08 14:56:18 +0000 |
commit | 26f7e78018ed6ce8aa11b5eef94c772ca4ee48bf (patch) | |
tree | f627e70e015c8f988ebf0258fe99caaa07f25324 /unittests/Format/FormatTest.cpp | |
parent | f8a6cb1f755fe1530a0fcdf3c4cb1706d7fce822 (diff) |
Change the data structure used in clang-format.
This is a first step towards supporting more complex structures such
as #ifs inside unwrapped lines. This patch mostly converts the array-based
UnwrappedLine into a linked-list-based UnwrappedLine. Future changes will
allow multiple children for each Token turning the UnwrappedLine into a
tree.
No functional changes intended.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171856 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index d3144432d4..c3f364db39 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -537,8 +537,8 @@ TEST_F(FormatTest, LayoutRemainingTokens) { } TEST_F(FormatTest, LayoutSingleUnwrappedLineInMacro) { - EXPECT_EQ("#define A \\\n b;", - format("#define A b;", 10, 2, getLLVMStyleWithColumns(11))); + EXPECT_EQ("# define A\\\n b;", + format("# define A b;", 11, 2, getLLVMStyleWithColumns(11))); } TEST_F(FormatTest, MacroDefinitionInsideStatement) { |