Lines Matching refs:Sources
52 Replacement::Replacement(const SourceManager &Sources, SourceLocation Start, in Replacement() argument
54 setFromSourceLocation(Sources, Start, Length, ReplacementText); in Replacement()
57 Replacement::Replacement(const SourceManager &Sources, in Replacement() argument
61 setFromSourceRange(Sources, Range, ReplacementText, LangOpts); in Replacement()
120 void Replacement::setFromSourceLocation(const SourceManager &Sources, in setFromSourceLocation() argument
124 Sources.getDecomposedLoc(Start); in setFromSourceLocation()
125 const FileEntry *Entry = Sources.getFileEntryForID(DecomposedLocation.first); in setFromSourceLocation()
134 static int getRangeSize(const SourceManager &Sources, in getRangeSize() argument
137 SourceLocation SpellingBegin = Sources.getSpellingLoc(Range.getBegin()); in getRangeSize()
138 SourceLocation SpellingEnd = Sources.getSpellingLoc(Range.getEnd()); in getRangeSize()
139 std::pair<FileID, unsigned> Start = Sources.getDecomposedLoc(SpellingBegin); in getRangeSize()
140 std::pair<FileID, unsigned> End = Sources.getDecomposedLoc(SpellingEnd); in getRangeSize()
143 End.second += Lexer::MeasureTokenLength(SpellingEnd, Sources, LangOpts); in getRangeSize()
147 void Replacement::setFromSourceRange(const SourceManager &Sources, in setFromSourceRange() argument
151 setFromSourceLocation(Sources, Sources.getSpellingLoc(Range.getBegin()), in setFromSourceRange()
152 getRangeSize(Sources, Range, LangOpts), in setFromSourceRange()