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