summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-11-25 11:08:59 +0000
committerDaniel Jasper <djasper@google.com>2013-11-25 11:08:59 +0000
commit5500f6163fbe80ab1991434e03244a1f62f7fdce (patch)
treecdb5109a91cc44efeef447c621e79f8310c7b05c /clang/unittests/Format/FormatTest.cpp
parent89ccb616bd1781fdcdfd4761166748ea42211e45 (diff)
downloadbcm5719-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.cpp4
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)));
}
OpenPOWER on IntegriCloud