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