}
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,
// 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;
}
if (!CXXUnit || !Tokens || !NumTokens)
return;
- SourceRange R = cxloc::translateSourceRange(Range);
+ SourceRange R = cxloc::translateCXSourceRange(Range);
if (R.isInvalid())
return;
return SourceLocation::getFromRawEncoding(L.int_data);
}
-static inline SourceRange translateSourceRange(CXSourceRange R) {
+static inline SourceRange translateCXSourceRange(CXSourceRange R) {
return SourceRange(SourceLocation::getFromRawEncoding(R.begin_int_data),
SourceLocation::getFromRawEncoding(R.end_int_data));
}