Lines Matching refs:SM
19 SourceLocation Commit::Edit::getFileLocation(SourceManager &SM) const {
20 SourceLocation Loc = SM.getLocForStartOfFile(Offset.getFID());
26 CharSourceRange Commit::Edit::getFileRange(SourceManager &SM) const {
27 SourceLocation Loc = getFileLocation(SM);
31 CharSourceRange Commit::Edit::getInsertFromRange(SourceManager &SM) const {
32 SourceLocation Loc = SM.getLocForStartOfFile(InsertFromRangeOffs.getFID());
227 const SourceManager &SM = SourceMgr;
228 while (SM.isMacroArgExpansion(loc))
229 loc = SM.getImmediateSpellingLoc(loc);
235 if (SM.isInSystemHeader(loc))
238 std::pair<FileID, unsigned> locInfo = SM.getDecomposedLoc(loc);
258 const SourceManager &SM = SourceMgr;
259 while (SM.isMacroArgExpansion(loc))
260 loc = SM.getImmediateSpellingLoc(loc);
266 if (SM.isInSystemHeader(loc))
273 std::pair<FileID, unsigned> locInfo = SM.getDecomposedLoc(loc);
297 const SourceManager &SM = SourceMgr;
298 range = Lexer::makeFileCharRange(range, SM, LangOpts);
304 if (SM.isInSystemHeader(range.getBegin()) ||
305 SM.isInSystemHeader(range.getEnd()))
311 std::pair<FileID, unsigned> beginInfo = SM.getDecomposedLoc(range.getBegin());
312 std::pair<FileID, unsigned> endInfo = SM.getDecomposedLoc(range.getEnd());