Lines Matching refs:Range

45                                        const FileEntry *File, SourceRange Range)
46 : PreprocessingDirective(InclusionDirectiveKind, Range), InQuotes(InQuotes),
57 /// that source range \p Range encompasses.
59 PreprocessingRecord::getPreprocessedEntitiesInRange(SourceRange Range) {
60 if (Range.isInvalid())
63 if (CachedRangeQuery.Range == Range) {
68 std::pair<int, int> Res = getPreprocessedEntitiesInRangeSlow(Range);
70 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)();
394 SourceRange Range) {
401 MacroExpansion(Id.getIdentifierInfo(), Range));
403 addPreprocessedEntity(new (*this) MacroExpansion(Def, Range));
424 SourceRange Range) {
431 void PreprocessingRecord::SourceRangeSkipped(SourceRange Range,
433 assert(Range.isValid());
434 SkippedRanges.emplace_back(Range.getBegin(), EndifLoc);
439 SourceRange Range,
441 addMacroExpansion(Id, MD.getMacroInfo(), Range);