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()
336 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()
423 ContentCache &SourceManager::createMemBufferContentCache( in createMemBufferContentCache()
433 const SrcMgr::SLocEntry &SourceManager::loadSLocEntry(unsigned Index, in loadSLocEntry()
454 SourceManager::AllocateLoadedSLocEntries(unsigned NumSLocEntries, in AllocateLoadedSLocEntries()
469 llvm::MemoryBufferRef SourceManager::getFakeBufferForRecovery() const { in getFakeBufferForRecovery()
479 SrcMgr::ContentCache &SourceManager::getFakeContentCacheForRecovery() const { in getFakeContentCacheForRecovery()
489 FileID SourceManager::getPreviousFileID(FileID FID) const { in getPreviousFileID()
509 FileID SourceManager::getNextFileID(FileID FID) const { in getNextFileID()
532 FileID SourceManager::createFileID(const FileEntry *SourceFile, in createFileID()
541 FileID SourceManager::createFileID(FileEntryRef SourceFile, in createFileID()
562 FileID SourceManager::createFileID(std::unique_ptr<llvm::MemoryBuffer> Buffer, in createFileID()
576 FileID SourceManager::createFileID(const llvm::MemoryBufferRef &Buffer, in createFileID()
588 SourceManager::getOrCreateFileID(const FileEntry *SourceFile, in getOrCreateFileID()
598 FileID SourceManager::createFileIDImpl(ContentCache &File, StringRef Filename, in createFileIDImpl()
633 SourceManager::createMacroArgExpansionLoc(SourceLocation SpellingLoc, in createMacroArgExpansionLoc()
641 SourceLocation SourceManager::createExpansionLoc( in createExpansionLoc()
651 SourceLocation SourceManager::createTokenSplitLoc(SourceLocation Spelling, in createTokenSplitLoc()
662 SourceManager::createExpansionLocImpl(const ExpansionInfo &Info, in createExpansionLocImpl()
684 SourceManager::getMemoryBufferForFileOrNone(const FileEntry *File) { in getMemoryBufferForFileOrNone()
689 void SourceManager::overrideFileContents( in overrideFileContents()
699 void SourceManager::overrideFileContents(const FileEntry *SourceFile, in overrideFileContents()
711 SourceManager::bypassFileContentsOverride(FileEntryRef File) { in bypassFileContentsOverride()
723 void SourceManager::setFileIsTransient(const FileEntry *File) { in setFileIsTransient()
728 SourceManager::getNonBuiltinFilenameForID(FileID FID) const { in getNonBuiltinFilenameForID()
735 StringRef SourceManager::getBufferData(FileID FID, bool *Invalid) const { in getBufferData()
743 SourceManager::getBufferDataIfLoaded(FileID FID) const { in getBufferDataIfLoaded()
749 llvm::Optional<StringRef> SourceManager::getBufferDataOrNone(FileID FID) const { in getBufferDataOrNone()
766 FileID SourceManager::getFileIDSlow(SourceLocation::UIntTy SLocOffset) const { in getFileIDSlow()
781 FileID SourceManager::getFileIDLocal(SourceLocation::UIntTy SLocOffset) const { in getFileIDLocal()
864 FileID SourceManager::getFileIDLoaded(SourceLocation::UIntTy SLocOffset) const { in getFileIDLoaded()
935 SourceLocation SourceManager::
950 SourceLocation SourceManager::getSpellingLocSlowCase(SourceLocation Loc) const { in getSpellingLocSlowCase()
959 SourceLocation SourceManager::getFileLocSlowCase(SourceLocation Loc) const { in getFileLocSlowCase()
971 SourceManager::getDecomposedExpansionLocSlowCase( in getDecomposedExpansionLocSlowCase()
989 SourceManager::getDecomposedSpellingLocSlowCase(const SrcMgr::SLocEntry *E, in getDecomposedSpellingLocSlowCase()
1010 SourceLocation SourceManager::getImmediateSpellingLoc(SourceLocation Loc) const{ in getImmediateSpellingLoc()
1018 StringRef SourceManager::getFilename(SourceLocation SpellingLoc) const { in getFilename()
1027 SourceManager::getImmediateExpansionRange(SourceLocation Loc) const { in getImmediateExpansionRange()
1033 SourceLocation SourceManager::getTopMacroCallerLoc(SourceLocation Loc) const { in getTopMacroCallerLoc()
1041 CharSourceRange SourceManager::getExpansionRange(SourceLocation Loc) const { in getExpansionRange()
1059 bool SourceManager::isMacroArgExpansion(SourceLocation Loc, in isMacroArgExpansion()
1072 bool SourceManager::isMacroBodyExpansion(SourceLocation Loc) const { in isMacroBodyExpansion()
1080 bool SourceManager::isAtStartOfImmediateMacroExpansion(SourceLocation Loc, in isAtStartOfImmediateMacroExpansion()
1115 bool SourceManager::isAtEndOfImmediateMacroExpansion(SourceLocation Loc, in isAtEndOfImmediateMacroExpansion()
1157 const char *SourceManager::getCharacterData(SourceLocation SL, in getCharacterData()
1183 unsigned SourceManager::getColumnNumber(FileID FID, unsigned FilePos, in getColumnNumber()
1237 unsigned SourceManager::getSpellingColumnNumber(SourceLocation Loc, in getSpellingColumnNumber()
1244 unsigned SourceManager::getExpansionColumnNumber(SourceLocation Loc, in getExpansionColumnNumber()
1251 unsigned SourceManager::getPresumedColumnNumber(SourceLocation Loc, in getPresumedColumnNumber()
1347 unsigned SourceManager::getLineNumber(FileID FID, unsigned FilePos, in getLineNumber()
1444 unsigned SourceManager::getSpellingLineNumber(SourceLocation Loc, in getSpellingLineNumber()
1450 unsigned SourceManager::getExpansionLineNumber(SourceLocation Loc, in getExpansionLineNumber()
1456 unsigned SourceManager::getPresumedLineNumber(SourceLocation Loc, in getPresumedLineNumber()
1472 SourceManager::getFileCharacteristic(SourceLocation Loc) const { in getFileCharacteristic()
1501 StringRef SourceManager::getBufferName(SourceLocation Loc, in getBufferName()
1518 PresumedLoc SourceManager::getPresumedLoc(SourceLocation Loc, in getPresumedLoc()
1594 bool SourceManager::isInMainFile(SourceLocation Loc) const { in isInMainFile()
1617 unsigned SourceManager::getFileIDSize(FileID FID) const { in getFileIDSize()
1643 SourceLocation SourceManager::translateFileLineCol(const FileEntry *SourceFile, in translateFileLineCol()
1657 FileID SourceManager::translateFile(const FileEntry *SourceFile) const { in translateFile()
1696 SourceLocation SourceManager::translateLineCol(FileID FID, in translateLineCol()
1759 void SourceManager::computeMacroArgsCache(MacroArgsMap &MacroArgsCache, in computeMacroArgsCache()
1825 void SourceManager::associateFileChunkWithMacroArgExp( in associateFileChunkWithMacroArgExp()
1914 SourceManager::getMacroArgExpandedLocation(SourceLocation Loc) const { in getMacroArgExpandedLocation()
1948 SourceManager::getDecomposedIncludedLoc(FileID FID) const { in getDecomposedIncludedLoc()
1981 const SourceManager &SM) { in MoveUpIncludeHierarchy()
1992 InBeforeInTUCacheEntry &SourceManager::getInBeforeInTUCache(FileID LFID, in getInBeforeInTUCache()
2019 bool SourceManager::isBeforeInTranslationUnit(SourceLocation LHS, in isBeforeInTranslationUnit()
2073 std::pair<bool, bool> SourceManager::isInTheSameTranslationUnit( in isInTheSameTranslationUnit()
2127 void SourceManager::PrintStats() const { in PrintStats()
2155 LLVM_DUMP_METHOD void SourceManager::dump() const { in dump()
2215 SourceManager::MemoryBufferSizes SourceManager::getMemoryBufferSizes() const { in getMemoryBufferSizes()
2233 size_t SourceManager::getDataStructureSizes() const { in getDataStructureSizes()
2265 SourceMgr = std::make_unique<SourceManager>(*Diagnostics, *FileMgr); in SourceManagerForFile()