Lines Matching refs:SM
216 const SourceManager &SM =
218 SourceLocation ExpansionLoc = SM.getExpansionLoc(Loc);
222 FileID fileID = SM.getFileID(ExpansionLoc);
224 const SrcMgr::SLocEntry &sloc = SM.getSLocEntry(fileID, &Invalid);
231 *file = (void *)SM.getFileEntryForSLocEntry(sloc);
233 *line = SM.getExpansionLineNumber(ExpansionLoc);
235 *column = SM.getExpansionColumnNumber(ExpansionLoc);
237 *offset = SM.getDecomposedLoc(ExpansionLoc).second;
257 const SourceManager &SM =
259 PresumedLoc PreLoc = SM.getPresumedLoc(Loc);
296 const SourceManager &SM =
300 SourceLocation SimpleSpellingLoc = SM.getImmediateSpellingLoc(SpellLoc);
302 SM.getFileEntryForID(SM.getDecomposedLoc(SimpleSpellingLoc).first))
305 SpellLoc = SM.getExpansionLoc(SpellLoc);
308 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(SpellLoc);
316 *file = (void *)SM.getFileEntryForID(FID);
318 *line = SM.getLineNumber(FID, FileOffset);
320 *column = SM.getColumnNumber(FID, FileOffset);