Lines Matching refs:SM
135 static SourceLocation getFileSpellingLoc(SourceManager &SM, in getFileSpellingLoc() argument
139 SourceLocation SpellLoc = SM.getImmediateSpellingLoc(Loc); in getFileSpellingLoc()
141 return getFileSpellingLoc(SM, SpellLoc, isMacroArg); in getFileSpellingLoc()
143 isMacroArg = SM.isMacroArgExpansion(Loc); in getFileSpellingLoc()
189 SourceManager &SM = Ctx.getSourceManager(); in findFileIdRefVisit() local
193 Loc = getFileSpellingLoc(SM, Loc, isMacroArg); in findFileIdRefVisit()
198 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Loc); in findFileIdRefVisit()
219 SourceManager &SM = cxtu::getASTUnit(TU)->getSourceManager(); in findIdRefsInFile() local
221 FileID FID = SM.translateFile(File); in findIdRefsInFile()
235 SourceRange Range(SM.getLocForStartOfFile(FID), SM.getLocForEndOfFile(FID)); in findIdRefsInFile()
284 SourceManager &SM = Ctx.getSourceManager(); in findFileMacroRefVisit() local
288 Loc = getFileSpellingLoc(SM, Loc, isMacroArg); in findFileMacroRefVisit()
293 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Loc); in findFileMacroRefVisit()
294 if (SM.getFileEntryForID(LocInfo.first) != data->File) in findFileMacroRefVisit()
317 SourceManager &SM = Unit->getSourceManager(); in findMacroRefsInFile() local
319 FileID FID = SM.translateFile(File); in findMacroRefsInFile()
330 SourceRange Range(SM.getLocForStartOfFile(FID), SM.getLocForEndOfFile(FID)); in findMacroRefsInFile()
362 SourceManager &SM = Ctx.getSourceManager(); in visit() local
365 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Loc); in visit()
366 if (SM.getFileEntryForID(LocInfo.first) != File) in visit()
389 SourceManager &SM = Unit->getSourceManager(); in findIncludesInFile() local
391 FileID FID = SM.translateFile(File); in findIncludesInFile()
395 SourceRange Range(SM.getLocForStartOfFile(FID), SM.getLocForEndOfFile(FID)); in findIncludesInFile()