diff options
author | Daniel Jasper <djasper@google.com> | 2013-11-25 11:08:59 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-11-25 11:08:59 +0000 |
commit | 5500f6163fbe80ab1991434e03244a1f62f7fdce (patch) | |
tree | cdb5109a91cc44efeef447c621e79f8310c7b05c /clang/unittests/Format/FormatTest.cpp | |
parent | 89ccb616bd1781fdcdfd4761166748ea42211e45 (diff) | |
download | bcm5719-llvm-5500f6163fbe80ab1991434e03244a1f62f7fdce.tar.gz bcm5719-llvm-5500f6163fbe80ab1991434e03244a1f62f7fdce.zip |
clang-format: Refactor calculation of lines intersecting with -lines.
No functional changes intended. However, it seems to have found a buggy
behavior in one of the tests. I think this structure is generally
desirable and it will make a planned bugfix significantly easier.
llvm-svn: 195634
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index d61dfc44d90..fc0e935037b 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -187,10 +187,10 @@ TEST_F(FormatTest, FormatsCorrectRegionForLeadingWhitespace) { 26, 0, getLLVMStyleWithColumns(12))); EXPECT_EQ("#define A \\\n" " int a; \\\n" - " int b;", + " int b;", format("#define A \\\n" " int a; \\\n" - " int b;", + " int b;", 25, 0, getLLVMStyleWithColumns(12))); } |