Lines Matching refs:SourceManager
273 unsigned SourceManager::getLineTableFilenameID(StringRef Name) { in getLineTableFilenameID()
280 void SourceManager::AddLineNote(SourceLocation Loc, unsigned LineNo, in AddLineNote()
308 LineTableInfo &SourceManager::getLineTable() { in getLineTable()
318 SourceManager::SourceManager(DiagnosticsEngine &Diag, FileManager &FileMgr, in SourceManager() function in SourceManager
325 SourceManager::~SourceManager() { in ~SourceManager()
343 void SourceManager::clearIDTables() { in clearIDTables()
362 bool SourceManager::isMainFile(const FileEntry &SourceFile) { in isMainFile()
369 void SourceManager::initializeForReplay(const SourceManager &Old) { in initializeForReplay()
397 ContentCache &SourceManager::getOrCreateContentCache(FileEntryRef FileEnt, in getOrCreateContentCache()
430 ContentCache &SourceManager::createMemBufferContentCache( in createMemBufferContentCache()
440 const SrcMgr::SLocEntry &SourceManager::loadSLocEntry(unsigned Index, in loadSLocEntry()
442 return const_cast<SourceManager *>(this)->loadSLocEntry(Index, Invalid); in loadSLocEntry()
445 SrcMgr::SLocEntry &SourceManager::loadSLocEntry(unsigned Index, bool *Invalid) { in loadSLocEntry()
465 SourceManager::AllocateLoadedSLocEntries(unsigned NumSLocEntries, in AllocateLoadedSLocEntries()
485 llvm::MemoryBufferRef SourceManager::getFakeBufferForRecovery() const { in getFakeBufferForRecovery()
495 SrcMgr::ContentCache &SourceManager::getFakeContentCacheForRecovery() const { in getFakeContentCacheForRecovery()
505 FileID SourceManager::getPreviousFileID(FileID FID) const { in getPreviousFileID()
525 FileID SourceManager::getNextFileID(FileID FID) const { in getNextFileID()
546 FileID SourceManager::createFileID(FileEntryRef SourceFile, in createFileID()
567 FileID SourceManager::createFileID(std::unique_ptr<llvm::MemoryBuffer> Buffer, in createFileID()
581 FileID SourceManager::createFileID(const llvm::MemoryBufferRef &Buffer, in createFileID()
593 SourceManager::getOrCreateFileID(FileEntryRef SourceFile, in getOrCreateFileID()
603 FileID SourceManager::createFileIDImpl(ContentCache &File, StringRef Filename, in createFileIDImpl()
639 SourceLocation SourceManager::createMacroArgExpansionLoc( in createMacroArgExpansionLoc()
646 SourceLocation SourceManager::createExpansionLoc( in createExpansionLoc()
656 SourceLocation SourceManager::createTokenSplitLoc(SourceLocation Spelling, in createTokenSplitLoc()
667 SourceManager::createExpansionLocImpl(const ExpansionInfo &Info, in createExpansionLocImpl()
697 SourceManager::getMemoryBufferForFileOrNone(FileEntryRef File) { in getMemoryBufferForFileOrNone()
702 void SourceManager::overrideFileContents( in overrideFileContents()
712 void SourceManager::overrideFileContents(const FileEntry *SourceFile, in overrideFileContents()
728 SourceManager::bypassFileContentsOverride(FileEntryRef File) { in bypassFileContentsOverride()
740 void SourceManager::setFileIsTransient(FileEntryRef File) { in setFileIsTransient()
745 SourceManager::getNonBuiltinFilenameForID(FileID FID) const { in getNonBuiltinFilenameForID()
752 StringRef SourceManager::getBufferData(FileID FID, bool *Invalid) const { in getBufferData()
760 SourceManager::getBufferDataIfLoaded(FileID FID) const { in getBufferDataIfLoaded()
766 std::optional<StringRef> SourceManager::getBufferDataOrNone(FileID FID) const { in getBufferDataOrNone()
783 FileID SourceManager::getFileIDSlow(SourceLocation::UIntTy SLocOffset) const { in getFileIDSlow()
798 FileID SourceManager::getFileIDLocal(SourceLocation::UIntTy SLocOffset) const { in getFileIDLocal()
878 FileID SourceManager::getFileIDLoaded(SourceLocation::UIntTy SLocOffset) const { in getFileIDLoaded()
887 SourceLocation SourceManager::
902 SourceLocation SourceManager::getSpellingLocSlowCase(SourceLocation Loc) const { in getSpellingLocSlowCase()
911 SourceLocation SourceManager::getFileLocSlowCase(SourceLocation Loc) const { in getFileLocSlowCase()
923 SourceManager::getDecomposedExpansionLocSlowCase( in getDecomposedExpansionLocSlowCase()
941 SourceManager::getDecomposedSpellingLocSlowCase(const SrcMgr::SLocEntry *E, in getDecomposedSpellingLocSlowCase()
962 SourceLocation SourceManager::getImmediateSpellingLoc(SourceLocation Loc) const{ in getImmediateSpellingLoc()
970 StringRef SourceManager::getFilename(SourceLocation SpellingLoc) const { in getFilename()
979 SourceManager::getImmediateExpansionRange(SourceLocation Loc) const { in getImmediateExpansionRange()
985 SourceLocation SourceManager::getTopMacroCallerLoc(SourceLocation Loc) const { in getTopMacroCallerLoc()
993 CharSourceRange SourceManager::getExpansionRange(SourceLocation Loc) const { in getExpansionRange()
1011 bool SourceManager::isMacroArgExpansion(SourceLocation Loc, in isMacroArgExpansion()
1024 bool SourceManager::isMacroBodyExpansion(SourceLocation Loc) const { in isMacroBodyExpansion()
1032 bool SourceManager::isAtStartOfImmediateMacroExpansion(SourceLocation Loc, in isAtStartOfImmediateMacroExpansion()
1067 bool SourceManager::isAtEndOfImmediateMacroExpansion(SourceLocation Loc, in isAtEndOfImmediateMacroExpansion()
1109 const char *SourceManager::getCharacterData(SourceLocation SL, in getCharacterData()
1135 unsigned SourceManager::getColumnNumber(FileID FID, unsigned FilePos, in getColumnNumber()
1189 unsigned SourceManager::getSpellingColumnNumber(SourceLocation Loc, in getSpellingColumnNumber()
1196 unsigned SourceManager::getExpansionColumnNumber(SourceLocation Loc, in getExpansionColumnNumber()
1203 unsigned SourceManager::getPresumedColumnNumber(SourceLocation Loc, in getPresumedColumnNumber()
1300 unsigned SourceManager::getLineNumber(FileID FID, unsigned FilePos, in getLineNumber()
1397 unsigned SourceManager::getSpellingLineNumber(SourceLocation Loc, in getSpellingLineNumber()
1403 unsigned SourceManager::getExpansionLineNumber(SourceLocation Loc, in getExpansionLineNumber()
1409 unsigned SourceManager::getPresumedLineNumber(SourceLocation Loc, in getPresumedLineNumber()
1425 SourceManager::getFileCharacteristic(SourceLocation Loc) const { in getFileCharacteristic()
1454 StringRef SourceManager::getBufferName(SourceLocation Loc, in getBufferName()
1471 PresumedLoc SourceManager::getPresumedLoc(SourceLocation Loc, in getPresumedLoc()
1547 bool SourceManager::isInMainFile(SourceLocation Loc) const { in isInMainFile()
1570 unsigned SourceManager::getFileIDSize(FileID FID) const { in getFileIDSize()
1596 SourceLocation SourceManager::translateFileLineCol(const FileEntry *SourceFile, in translateFileLineCol()
1610 FileID SourceManager::translateFile(const FileEntry *SourceFile) const { in translateFile()
1649 SourceLocation SourceManager::translateLineCol(FileID FID, in translateLineCol()
1712 void SourceManager::computeMacroArgsCache(MacroArgsMap &MacroArgsCache, in computeMacroArgsCache()
1778 void SourceManager::associateFileChunkWithMacroArgExp( in associateFileChunkWithMacroArgExp()
1857 void SourceManager::updateSlocUsageStats() const { in updateSlocUsageStats()
1873 SourceManager::getMacroArgExpandedLocation(SourceLocation Loc) const { in getMacroArgExpandedLocation()
1907 SourceManager::getDecomposedIncludedLoc(FileID FID) const { in getDecomposedIncludedLoc()
1935 FileID SourceManager::getUniqueLoadedASTFileID(SourceLocation Loc) const { in getUniqueLoadedASTFileID()
1953 bool SourceManager::isInTheSameTranslationUnitImpl( in isInTheSameTranslationUnitImpl()
1982 const SourceManager &SM) { in MoveUpTranslationUnitIncludeHierarchy()
1994 InBeforeInTUCacheEntry &SourceManager::getInBeforeInTUCache(FileID LFID, in getInBeforeInTUCache()
2023 bool SourceManager::isBeforeInTranslationUnit(SourceLocation LHS, in isBeforeInTranslationUnit()
2046 std::pair<bool, bool> SourceManager::isInTheSameTranslationUnit( in isInTheSameTranslationUnit()
2159 void SourceManager::PrintStats() const { in PrintStats()
2189 LLVM_DUMP_METHOD void SourceManager::dump() const { in dump()
2245 void SourceManager::noteSLocAddressSpaceUsage( in noteSLocAddressSpaceUsage()
2337 SourceManager::MemoryBufferSizes SourceManager::getMemoryBufferSizes() const { in getMemoryBufferSizes()
2355 size_t SourceManager::getDataStructureSizes() const { in getDataStructureSizes()
2387 SourceMgr = std::make_unique<SourceManager>(*Diagnostics, *FileMgr); in SourceManagerForFile()