Home | History | Annotate | Download | only in Lex

Lines Matching defs:Range

30                                        SourceRange Range)
31 : PreprocessingDirective(InclusionDirectiveKind, Range),
47 /// that source range \p Range encompasses.
49 PreprocessingRecord::getPreprocessedEntitiesInRange(SourceRange Range) {
50 if (Range.isInvalid())
53 if (CachedRangeQuery.Range == Range) {
58 std::pair<int, int> Res = getPreprocessedEntitiesInRangeSlow(Range);
60 CachedRangeQuery.Range = Range;
85 /// and not from files \#included in the range given at
125 /// that source range \arg R encompasses.
127 PreprocessingRecord::getPreprocessedEntitiesInRangeSlow(SourceRange Range) {
128 assert(Range.isValid());
129 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin()));
132 Local = findLocalPreprocessedEntitiesInRange(Range);
134 // Check if range spans local entities.
135 if (!ExternalSource || SourceMgr.isLocalSourceLocation(Range.getBegin()))
139 Loaded = ExternalSource->findPreprocessedEntitiesInRange(Range);
141 // Check if range spans local entities.
147 // Check if range spans loaded entities.
152 // Range spands loaded and local entities.
158 SourceRange Range) const {
159 if (Range.isInvalid())
161 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin()));
163 unsigned Begin = findBeginLocalPreprocessedEntity(Range.getBegin());
164 unsigned End = findEndLocalPreprocessedEntity(Range.getEnd());
193 SourceRange Range = PPE->getSourceRange();
194 return (Range.*getRangeLoc)();
371 SourceRange Range) {
378 MacroExpansion(Id.getIdentifierInfo(), Range));
380 addPreprocessedEntity(new (*this) MacroExpansion(Def, Range));
401 SourceRange Range) {
408 void PreprocessingRecord::SourceRangeSkipped(SourceRange Range) {
409 SkippedRanges.push_back(Range);
414 SourceRange Range,
416 addMacroExpansion(Id, MD.getMacroInfo(), Range);
474 // a token range.