Lines Matching refs:SourceMgr
90 FileMgr(Headers.getFileMgr()), SourceMgr(SM), in Preprocessor()
91 ScratchBuf(new ScratchBuffer(SourceMgr)), HeaderInfo(Headers), in Preprocessor()
254 const char *Start = SourceMgr.getCharacterData(Tok.getLocation()); in DumpToken()
265 Loc.print(llvm::errs(), SourceMgr); in DumpLocation()
368 Def = I->second.findDirectiveAtLoc(Loc, SourceMgr); in getLastMacroWithSpelling()
379 SourceMgr.isBeforeInTranslationUnit(BestLocation, Location))) { in getLastMacroWithSpelling()
406 SourceMgr.getMemoryBufferForFileOrNone(File); in SetCodeCompletionPoint()
431 SourceMgr.getFileEntryForID(SourceMgr.getMainFileID()) == File) { in SetCodeCompletionPoint()
448 SourceMgr.overrideFileContents(File, std::move(NewBuffer)); in SetCodeCompletionPoint()
500 Loc = SourceMgr.createExpansionLoc(Loc, ExpansionLocStart, in CreateString()
552 FileID MainFileID = SourceMgr.getMainFileID(); in EnterMainSourceFile()
556 if (!SourceMgr.isLoadedFileID(MainFileID)) { in EnterMainSourceFile()
568 if (OptionalFileEntryRef FE = SourceMgr.getFileEntryRefForID(MainFileID)) in EnterMainSourceFile()
576 FileID FID = SourceMgr.createFileID(std::move(SB)); in EnterMainSourceFile()
598 SourceMgr.createFileID(*File, SourceLocation(), SrcMgr::C_User)); in EnterMainSourceFile()
616 return FE == SourceMgr.getFileEntryForID(PCHThroughHeaderFileID); in isPCHThroughHeader()
1486 bool Preprocessor::isSafeBufferOptOut(const SourceManager &SourceMgr, in isSafeBufferOptOut() argument
1490 auto TestInMap = [&SourceMgr](const SafeBufferOptOutRegionsTy &Map, in isSafeBufferOptOut()
1494 Map, [&SourceMgr, in isSafeBufferOptOut()
1496 return SourceMgr.isBeforeInTranslationUnit(Region.second, Loc); in isSafeBufferOptOut()
1501 return SourceMgr.isBeforeInTranslationUnit( in isSafeBufferOptOut()
1507 return SourceMgr.isBeforeInTranslationUnit(Map.back().first, Loc); in isSafeBufferOptOut()
1529 if (SourceMgr.isLocalSourceLocation(Loc)) in isSafeBufferOptOut()
1533 LoadedSafeBufferOptOutMap.lookupLoadedOptOutMap(Loc, SourceMgr); in isSafeBufferOptOut()
1615 LoadedSafeBufferOptOutMap.findAndConsLoadedOptOutMap(*It, SourceMgr); in setDeserializedSafeBufferOptOutMap()