[PATCH] Add contains() and overlaps() predicates to tooling::Range.
Manuel Klimek
klimek at google.com
Fri Jul 19 04:23:24 PDT 2013
lg
================
Comment at: unittests/Tooling/RefactoringTest.cpp:336
@@ +335,3 @@
+TEST(Range, overlaps) {
+ EXPECT_TRUE(Range(10, 10).overlaps(Range(0, 11)));
+ EXPECT_TRUE(Range(0, 11).overlaps(Range(10, 10)));
----------------
Now that I see that test, can we call it overlapsWith (or is that already correct English? - non-native-speaker here ;)
http://llvm-reviews.chandlerc.com/D1184
BRANCH
range-predicates
ARCANIST PROJECT
clang
More information about the cfe-commits
mailing list