Lines Matching defs:Sources
52 Replacement::Replacement(const SourceManager &Sources, SourceLocation Start,
54 setFromSourceLocation(Sources, Start, Length, ReplacementText);
57 Replacement::Replacement(const SourceManager &Sources,
61 setFromSourceRange(Sources, Range, ReplacementText, LangOpts);
120 void Replacement::setFromSourceLocation(const SourceManager &Sources,
124 Sources.getDecomposedLoc(Start);
126 Sources.getFileEntryRefForID(DecomposedLocation.first);
135 static int getRangeSize(const SourceManager &Sources,
138 SourceLocation SpellingBegin = Sources.getSpellingLoc(Range.getBegin());
139 SourceLocation SpellingEnd = Sources.getSpellingLoc(Range.getEnd());
140 std::pair<FileID, unsigned> Start = Sources.getDecomposedLoc(SpellingBegin);
141 std::pair<FileID, unsigned> End = Sources.getDecomposedLoc(SpellingEnd);
144 End.second += Lexer::MeasureTokenLength(SpellingEnd, Sources, LangOpts);
148 void Replacement::setFromSourceRange(const SourceManager &Sources,
152 setFromSourceLocation(Sources, Sources.getSpellingLoc(Range.getBegin()),
153 getRangeSize(Sources, Range, LangOpts),