Rename translateSourceRange(CXSourceRange) translateCXSourceRange, instead of
having overloaded functions with inverse semantics.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96155 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/CIndex/CIndex.cpp b/tools/CIndex/CIndex.cpp
index b7f028d..4525e4f 100644
--- a/tools/CIndex/CIndex.cpp
+++ b/tools/CIndex/CIndex.cpp
@@ -339,7 +339,7 @@
}
RangeComparisonResult CursorVisitor::CompareRegionOfInterest(CXSourceRange CXR) {
- return CompareRegionOfInterest(cxloc::translateSourceRange(CXR));
+ return CompareRegionOfInterest(cxloc::translateCXSourceRange(CXR));
}
/// \brief Visit the given cursor and, if requested by the visitor,
@@ -370,7 +370,7 @@
// we're done.
if (RegionOfInterest.isValid() && !CheckedRegionOfInterest) {
CXSourceRange Range = clang_getCursorExtent(Cursor);
- if (cxloc::translateSourceRange(Range).isInvalid() ||
+ if (cxloc::translateCXSourceRange(Range).isInvalid() ||
CompareRegionOfInterest(Range))
return false;
}
@@ -2003,7 +2003,7 @@
if (!CXXUnit || !Tokens || !NumTokens)
return;
- SourceRange R = cxloc::translateSourceRange(Range);
+ SourceRange R = cxloc::translateCXSourceRange(Range);
if (R.isInvalid())
return;