Lines Matching defs:Range

46                                        SourceRange Range)
47 : PreprocessingDirective(InclusionDirectiveKind, Range), InQuotes(InQuotes),
58 /// that source range \p Range encompasses.
60 PreprocessingRecord::getPreprocessedEntitiesInRange(SourceRange Range) {
61 if (Range.isInvalid())
64 if (CachedRangeQuery.Range == Range) {
69 std::pair<int, int> Res = getPreprocessedEntitiesInRangeSlow(Range);
71 CachedRangeQuery.Range = Range;
137 PreprocessingRecord::getPreprocessedEntitiesInRangeSlow(SourceRange Range) {
138 assert(Range.isValid());
139 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin()));
142 Local = findLocalPreprocessedEntitiesInRange(Range);
145 if (!ExternalSource || SourceMgr.isLocalSourceLocation(Range.getBegin()))
149 Loaded = ExternalSource->findPreprocessedEntitiesInRange(Range);
162 // Range spands loaded and local entities.
168 SourceRange Range) const {
169 if (Range.isInvalid())
171 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin()));
173 unsigned Begin = findBeginLocalPreprocessedEntity(Range.getBegin());
174 unsigned End = findEndLocalPreprocessedEntity(Range.getEnd());
203 SourceRange Range = PPE->getSourceRange();
204 return (Range.*getRangeLoc)();
389 SourceRange Range) {
396 MacroExpansion(Id.getIdentifierInfo(), Range));
398 addPreprocessedEntity(new (*this) MacroExpansion(Def, Range));
436 SourceRange Range) {
443 void PreprocessingRecord::SourceRangeSkipped(SourceRange Range,
445 assert(Range.isValid());
446 SkippedRanges.emplace_back(Range.getBegin(), EndifLoc);
451 SourceRange Range,
453 addMacroExpansion(Id, MD.getMacroInfo(), Range);