Lines Matching refs:Range

43                                        SourceRange Range)
44 : PreprocessingDirective(InclusionDirectiveKind, Range), InQuotes(InQuotes),
55 /// that source range \p Range encompasses.
57 PreprocessingRecord::getPreprocessedEntitiesInRange(SourceRange Range) {
58 if (Range.isInvalid())
61 if (CachedRangeQuery.Range == Range) {
66 std::pair<int, int> Res = getPreprocessedEntitiesInRangeSlow(Range);
68 CachedRangeQuery.Range = Range;
134 PreprocessingRecord::getPreprocessedEntitiesInRangeSlow(SourceRange Range) {
135 assert(Range.isValid());
136 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin()));
139 Local = findLocalPreprocessedEntitiesInRange(Range);
142 if (!ExternalSource || SourceMgr.isLocalSourceLocation(Range.getBegin()))
146 Loaded = ExternalSource->findPreprocessedEntitiesInRange(Range);
159 // Range spands loaded and local entities.
165 SourceRange Range) const {
166 if (Range.isInvalid())
168 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin()));
170 unsigned Begin = findBeginLocalPreprocessedEntity(Range.getBegin());
171 unsigned End = findEndLocalPreprocessedEntity(Range.getEnd());
200 SourceRange Range = PPE->getSourceRange();
201 return (Range.*getRangeLoc)();
386 SourceRange Range) {
393 MacroExpansion(Id.getIdentifierInfo(), Range));
395 addPreprocessedEntity(new (*this) MacroExpansion(Def, Range));
433 SourceRange Range) {
440 void PreprocessingRecord::SourceRangeSkipped(SourceRange Range,
442 assert(Range.isValid());
443 SkippedRanges.emplace_back(Range.getBegin(), EndifLoc);
448 SourceRange Range,
450 addMacroExpansion(Id, MD.getMacroInfo(), Range);