Lines Matching refs:SourceManager
265 unsigned SourceManager::getLineTableFilenameID(StringRef Name) { in getLineTableFilenameID()
272 void SourceManager::AddLineNote(SourceLocation Loc, unsigned LineNo, in AddLineNote()
300 LineTableInfo &SourceManager::getLineTable() { in getLineTable()
310 SourceManager::SourceManager(DiagnosticsEngine &Diag, FileManager &FileMgr, in SourceManager() function in SourceManager
317 SourceManager::~SourceManager() { in ~SourceManager()
335 void SourceManager::clearIDTables() { in clearIDTables()
354 bool SourceManager::isMainFile(const FileEntry &SourceFile) { in isMainFile()
361 void SourceManager::initializeForReplay(const SourceManager &Old) { in initializeForReplay()
389 ContentCache &SourceManager::getOrCreateContentCache(FileEntryRef FileEnt, in getOrCreateContentCache()
422 ContentCache &SourceManager::createMemBufferContentCache( in createMemBufferContentCache()
432 const SrcMgr::SLocEntry &SourceManager::loadSLocEntry(unsigned Index, in loadSLocEntry()
453 SourceManager::AllocateLoadedSLocEntries(unsigned NumSLocEntries, in AllocateLoadedSLocEntries()
472 llvm::MemoryBufferRef SourceManager::getFakeBufferForRecovery() const { in getFakeBufferForRecovery()
482 SrcMgr::ContentCache &SourceManager::getFakeContentCacheForRecovery() const { in getFakeContentCacheForRecovery()
492 FileID SourceManager::getPreviousFileID(FileID FID) const { in getPreviousFileID()
512 FileID SourceManager::getNextFileID(FileID FID) const { in getNextFileID()
533 FileID SourceManager::createFileID(FileEntryRef SourceFile, in createFileID()
554 FileID SourceManager::createFileID(std::unique_ptr<llvm::MemoryBuffer> Buffer, in createFileID()
568 FileID SourceManager::createFileID(const llvm::MemoryBufferRef &Buffer, in createFileID()
580 SourceManager::getOrCreateFileID(FileEntryRef SourceFile, in getOrCreateFileID()
590 FileID SourceManager::createFileIDImpl(ContentCache &File, StringRef Filename, in createFileIDImpl()
625 SourceLocation SourceManager::createMacroArgExpansionLoc( in createMacroArgExpansionLoc()
632 SourceLocation SourceManager::createExpansionLoc( in createExpansionLoc()
642 SourceLocation SourceManager::createTokenSplitLoc(SourceLocation Spelling, in createTokenSplitLoc()
653 SourceManager::createExpansionLocImpl(const ExpansionInfo &Info, in createExpansionLocImpl()
682 SourceManager::getMemoryBufferForFileOrNone(FileEntryRef File) { in getMemoryBufferForFileOrNone()
687 void SourceManager::overrideFileContents( in overrideFileContents()
697 void SourceManager::overrideFileContents(const FileEntry *SourceFile, in overrideFileContents()
713 SourceManager::bypassFileContentsOverride(FileEntryRef File) { in bypassFileContentsOverride()
725 void SourceManager::setFileIsTransient(FileEntryRef File) { in setFileIsTransient()
730 SourceManager::getNonBuiltinFilenameForID(FileID FID) const { in getNonBuiltinFilenameForID()
737 StringRef SourceManager::getBufferData(FileID FID, bool *Invalid) const { in getBufferData()
745 SourceManager::getBufferDataIfLoaded(FileID FID) const { in getBufferDataIfLoaded()
751 std::optional<StringRef> SourceManager::getBufferDataOrNone(FileID FID) const { in getBufferDataOrNone()
768 FileID SourceManager::getFileIDSlow(SourceLocation::UIntTy SLocOffset) const { in getFileIDSlow()
783 FileID SourceManager::getFileIDLocal(SourceLocation::UIntTy SLocOffset) const { in getFileIDLocal()
863 FileID SourceManager::getFileIDLoaded(SourceLocation::UIntTy SLocOffset) const { in getFileIDLoaded()
872 SourceLocation SourceManager::
887 SourceLocation SourceManager::getSpellingLocSlowCase(SourceLocation Loc) const { in getSpellingLocSlowCase()
896 SourceLocation SourceManager::getFileLocSlowCase(SourceLocation Loc) const { in getFileLocSlowCase()
908 SourceManager::getDecomposedExpansionLocSlowCase( in getDecomposedExpansionLocSlowCase()
926 SourceManager::getDecomposedSpellingLocSlowCase(const SrcMgr::SLocEntry *E, in getDecomposedSpellingLocSlowCase()
947 SourceLocation SourceManager::getImmediateSpellingLoc(SourceLocation Loc) const{ in getImmediateSpellingLoc()
955 StringRef SourceManager::getFilename(SourceLocation SpellingLoc) const { in getFilename()
964 SourceManager::getImmediateExpansionRange(SourceLocation Loc) const { in getImmediateExpansionRange()
970 SourceLocation SourceManager::getTopMacroCallerLoc(SourceLocation Loc) const { in getTopMacroCallerLoc()
978 CharSourceRange SourceManager::getExpansionRange(SourceLocation Loc) const { in getExpansionRange()
996 bool SourceManager::isMacroArgExpansion(SourceLocation Loc, in isMacroArgExpansion()
1009 bool SourceManager::isMacroBodyExpansion(SourceLocation Loc) const { in isMacroBodyExpansion()
1017 bool SourceManager::isAtStartOfImmediateMacroExpansion(SourceLocation Loc, in isAtStartOfImmediateMacroExpansion()
1052 bool SourceManager::isAtEndOfImmediateMacroExpansion(SourceLocation Loc, in isAtEndOfImmediateMacroExpansion()
1094 const char *SourceManager::getCharacterData(SourceLocation SL, in getCharacterData()
1120 unsigned SourceManager::getColumnNumber(FileID FID, unsigned FilePos, in getColumnNumber()
1174 unsigned SourceManager::getSpellingColumnNumber(SourceLocation Loc, in getSpellingColumnNumber()
1181 unsigned SourceManager::getExpansionColumnNumber(SourceLocation Loc, in getExpansionColumnNumber()
1188 unsigned SourceManager::getPresumedColumnNumber(SourceLocation Loc, in getPresumedColumnNumber()
1285 unsigned SourceManager::getLineNumber(FileID FID, unsigned FilePos, in getLineNumber()
1382 unsigned SourceManager::getSpellingLineNumber(SourceLocation Loc, in getSpellingLineNumber()
1388 unsigned SourceManager::getExpansionLineNumber(SourceLocation Loc, in getExpansionLineNumber()
1394 unsigned SourceManager::getPresumedLineNumber(SourceLocation Loc, in getPresumedLineNumber()
1410 SourceManager::getFileCharacteristic(SourceLocation Loc) const { in getFileCharacteristic()
1439 StringRef SourceManager::getBufferName(SourceLocation Loc, in getBufferName()
1456 PresumedLoc SourceManager::getPresumedLoc(SourceLocation Loc, in getPresumedLoc()
1532 bool SourceManager::isInMainFile(SourceLocation Loc) const { in isInMainFile()
1555 unsigned SourceManager::getFileIDSize(FileID FID) const { in getFileIDSize()
1581 SourceLocation SourceManager::translateFileLineCol(const FileEntry *SourceFile, in translateFileLineCol()
1595 FileID SourceManager::translateFile(const FileEntry *SourceFile) const { in translateFile()
1634 SourceLocation SourceManager::translateLineCol(FileID FID, in translateLineCol()
1697 void SourceManager::computeMacroArgsCache(MacroArgsMap &MacroArgsCache, in computeMacroArgsCache()
1763 void SourceManager::associateFileChunkWithMacroArgExp( in associateFileChunkWithMacroArgExp()
1852 SourceManager::getMacroArgExpandedLocation(SourceLocation Loc) const { in getMacroArgExpandedLocation()
1886 SourceManager::getDecomposedIncludedLoc(FileID FID) const { in getDecomposedIncludedLoc()
1914 bool SourceManager::isInTheSameTranslationUnitImpl( in isInTheSameTranslationUnitImpl()
1943 const SourceManager &SM) { in MoveUpTranslationUnitIncludeHierarchy()
1955 InBeforeInTUCacheEntry &SourceManager::getInBeforeInTUCache(FileID LFID, in getInBeforeInTUCache()
1984 bool SourceManager::isBeforeInTranslationUnit(SourceLocation LHS, in isBeforeInTranslationUnit()
2007 std::pair<bool, bool> SourceManager::isInTheSameTranslationUnit( in isInTheSameTranslationUnit()
2120 void SourceManager::PrintStats() const { in PrintStats()
2150 LLVM_DUMP_METHOD void SourceManager::dump() const { in dump()
2206 void SourceManager::noteSLocAddressSpaceUsage( in noteSLocAddressSpaceUsage()
2298 SourceManager::MemoryBufferSizes SourceManager::getMemoryBufferSizes() const { in getMemoryBufferSizes()
2316 size_t SourceManager::getDataStructureSizes() const { in getDataStructureSizes()
2348 SourceMgr = std::make_unique<SourceManager>(*Diagnostics, *FileMgr); in SourceManagerForFile()