Home | History | Annotate | Download | only in libclang

Lines Matching refs:Range

110   assert(R1.isValid() && "First range is invalid?");
111 assert(R2.isValid() && "Second range is invalid?");
122 /// a given source range.
125 assert(R.isValid() && "First range is invalid?");
126 assert(L.isValid() && "Second range is invalid?");
136 /// \brief Translate a Clang source range into a CIndex source range.
203 // If we have a range of interest, and this cursor doesn't intersect with it,
206 SourceRange Range = getRawCursorExtent(Cursor);
207 if (Range.isInvalid() || CompareRegionOfInterest(Range))
237 // If the begin/end of the range lie in the same FileID, do the optimization
304 SourceRange Range = RegionOfInterest;
349 RangeComparisonResult CompRes = RangeCompare(SM, D->getSourceRange(),Range);
365 if (Visit(MakeCXCursor(D, TU, Range), /*CheckedRegionOfInterest=*/true))
372 // No Decls overlapped with the range. Move up the lexical context until there
373 // is a context that contains the range or we reach the translation unit
384 if (RangeCompare(SM, CurDeclRange, Range) == RangeOverlap) {
385 if (Visit(MakeCXCursor(D, TU, Range), /*CheckedRegionOfInterest=*/true))
413 // Beginning of range lies in the preamble but it also extends beyond
414 // it into the main file. Split the range into 2 parts, one covering
416 // calls to visitPreprocessedEntitiesInRange to accept a source range that
594 SourceRange Range = getFullCursorExtent(Cursor, AU->getSourceManager());
595 if (Range.isInvalid())
598 switch (CompareRegionOfInterest(Range)) {
1267 SourceRange Range) {
1281 return Visit(MakeCursorNamespaceRef(NNS->getAsNamespace(), Range.getBegin(),
1286 Range.getBegin(), TU));
1290 // range matches up with a reference cursor. Visit the appropriate reference
1294 return Visit(MakeCursorTypeRef(Typedef->getDecl(), Range.getBegin(), TU));
1296 return Visit(MakeCursorTypeRef(Tag->getDecl(), Range.getBegin(), TU));
1299 return VisitTemplateName(TST->getTemplateName(), Range.getBegin());
2651 SourceRange Range = getRawCursorExtent(C);
2652 if (Range.isInvalid() || CompareRegionOfInterest(Range))
4610 // when the expression source range overlaps the declaration range.
4611 // This can happen for C++ constructor expressions whose range generally
5003 SourceRange Range = cxcursor::getCursorMacroExpansion(C).getSourceRange();
5004 return TU->mapRangeFromPreamble(Range);
5009 SourceRange Range = cxcursor::getCursorMacroDefinition(C)->getSourceRange();
5010 return TU->mapRangeFromPreamble(Range);
5015 SourceRange Range = cxcursor::getCursorInclusionDirective(C)->getSourceRange();
5016 return TU->mapRangeFromPreamble(Range);
5661 static void getTokens(ASTUnit *CXXUnit, SourceRange Range,
5665 = SourceMgr.getDecomposedSpellingLoc(Range.getBegin());
5667 = SourceMgr.getDecomposedSpellingLoc(Range.getEnd());
5685 // Lex tokens until we hit the end of the range.
5733 void clang_tokenize(CXTranslationUnit TU, CXSourceRange Range,
5736 *Log << TU << ' ' << Range;
5755 SourceRange R = cxloc::translateCXSourceRange(Range);
5877 //// between the cursor location and the source range is the same as
5880 /// Pass RangeBefore to annotate tokens with a cursor until a range is reached.
5881 /// Pass RangeOverlap to annotate tokens inside a range.
5884 SourceRange range) {
5888 if (!annotateAndAdvanceFunctionMacroTokens(updateC, compResult, range))
5892 if (LocationCompare(SrcMgr, TokLoc, range) == compResult) {
5906 SourceRange range) {
5913 // advance the token index one by one until a token fails the range test.
5915 // pass the range test. If one of them fails we keep the token index pointing
5926 if (LocationCompare(SrcMgr, TokLoc, range) == compResult) {
6016 // Look at all of the tokens within this range.
6066 // This can happen for C++ constructor expressions whose range generally
6265 // Lex tokens in raw mode until we hit the end of the range, to avoid
6354 // Relex the tokens within the source range to look for preprocessing
7547 Logger &cxindex::Logger::operator<<(CXSourceRange range) {
7548 CXSourceLocation BLoc = clang_getRangeStart(range);
7549 CXSourceLocation ELoc = clang_getRangeEnd(range);