Lines Matching refs:SM

217   const SourceManager &SM =  in clang_Location_isInSystemHeader()  local
219 return SM.isInSystemHeader(Loc); in clang_Location_isInSystemHeader()
228 const SourceManager &SM = in clang_Location_isFromMainFile() local
230 return SM.isWrittenInMainFile(Loc); in clang_Location_isFromMainFile()
251 const SourceManager &SM = in clang_getExpansionLocation() local
253 SourceLocation ExpansionLoc = SM.getExpansionLoc(Loc); in clang_getExpansionLocation()
257 FileID fileID = SM.getFileID(ExpansionLoc); in clang_getExpansionLocation()
259 const SrcMgr::SLocEntry &sloc = SM.getSLocEntry(fileID, &Invalid); in clang_getExpansionLocation()
266 *file = const_cast<FileEntry *>(SM.getFileEntryForSLocEntry(sloc)); in clang_getExpansionLocation()
268 *line = SM.getExpansionLineNumber(ExpansionLoc); in clang_getExpansionLocation()
270 *column = SM.getExpansionColumnNumber(ExpansionLoc); in clang_getExpansionLocation()
272 *offset = SM.getDecomposedLoc(ExpansionLoc).second; in clang_getExpansionLocation()
294 const SourceManager &SM = in clang_getPresumedLocation() local
296 PresumedLoc PreLoc = SM.getPresumedLoc(Loc); in clang_getPresumedLocation()
333 const SourceManager &SM = in clang_getSpellingLocation() local
336 SourceLocation SpellLoc = SM.getFileLoc(Loc); in clang_getSpellingLocation()
337 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(SpellLoc); in clang_getSpellingLocation()
345 *file = const_cast<FileEntry *>(SM.getFileEntryForID(FID)); in clang_getSpellingLocation()
347 *line = SM.getLineNumber(FID, FileOffset); in clang_getSpellingLocation()
349 *column = SM.getColumnNumber(FID, FileOffset); in clang_getSpellingLocation()
371 const SourceManager &SM = in clang_getFileLocation() local
373 SourceLocation FileLoc = SM.getFileLoc(Loc); in clang_getFileLocation()
374 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(FileLoc); in clang_getFileLocation()
382 *file = const_cast<FileEntry *>(SM.getFileEntryForID(FID)); in clang_getFileLocation()
384 *line = SM.getLineNumber(FID, FileOffset); in clang_getFileLocation()
386 *column = SM.getColumnNumber(FID, FileOffset); in clang_getFileLocation()