Lines Matching refs:Range
45 const FileEntry *File, SourceRange Range) in InclusionDirective() argument
46 : PreprocessingDirective(InclusionDirectiveKind, Range), InQuotes(InQuotes), in InclusionDirective()
59 PreprocessingRecord::getPreprocessedEntitiesInRange(SourceRange Range) { in getPreprocessedEntitiesInRange() argument
60 if (Range.isInvalid()) in getPreprocessedEntitiesInRange()
63 if (CachedRangeQuery.Range == Range) { in getPreprocessedEntitiesInRange()
68 std::pair<int, int> Res = getPreprocessedEntitiesInRangeSlow(Range); in getPreprocessedEntitiesInRange()
70 CachedRangeQuery.Range = Range; in getPreprocessedEntitiesInRange()
137 PreprocessingRecord::getPreprocessedEntitiesInRangeSlow(SourceRange Range) { in getPreprocessedEntitiesInRangeSlow() argument
138 assert(Range.isValid()); in getPreprocessedEntitiesInRangeSlow()
139 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in getPreprocessedEntitiesInRangeSlow()
142 Local = findLocalPreprocessedEntitiesInRange(Range); in getPreprocessedEntitiesInRangeSlow()
145 if (!ExternalSource || SourceMgr.isLocalSourceLocation(Range.getBegin())) in getPreprocessedEntitiesInRangeSlow()
149 Loaded = ExternalSource->findPreprocessedEntitiesInRange(Range); in getPreprocessedEntitiesInRangeSlow()
168 SourceRange Range) const { in findLocalPreprocessedEntitiesInRange()
169 if (Range.isInvalid()) in findLocalPreprocessedEntitiesInRange()
171 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in findLocalPreprocessedEntitiesInRange()
173 unsigned Begin = findBeginLocalPreprocessedEntity(Range.getBegin()); in findLocalPreprocessedEntitiesInRange()
174 unsigned End = findEndLocalPreprocessedEntity(Range.getEnd()); in findLocalPreprocessedEntitiesInRange()
203 SourceRange Range = PPE->getSourceRange(); in getLoc() local
204 return (Range.*getRangeLoc)(); in getLoc()
394 SourceRange Range) { in addMacroExpansion() argument
401 MacroExpansion(Id.getIdentifierInfo(), Range)); in addMacroExpansion()
403 addPreprocessedEntity(new (*this) MacroExpansion(Def, Range)); in addMacroExpansion()
441 SourceRange Range) { in Defined() argument
448 void PreprocessingRecord::SourceRangeSkipped(SourceRange Range, in SourceRangeSkipped() argument
450 assert(Range.isValid()); in SourceRangeSkipped()
451 SkippedRanges.emplace_back(Range.getBegin(), EndifLoc); in SourceRangeSkipped()
456 SourceRange Range, in MacroExpands() argument
458 addMacroExpansion(Id, MD.getMacroInfo(), Range); in MacroExpands()