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()
540 FileID SourceManager::createFileID(FileEntryRef SourceFile, in createFileID()
560 FileID SourceManager::createFileID(std::unique_ptr<llvm::MemoryBuffer> Buffer, in createFileID()
573 FileID SourceManager::createFileID(const llvm::MemoryBufferRef &Buffer, in createFileID()
584 SourceManager::getOrCreateFileID(const FileEntry *SourceFile, in getOrCreateFileID()
594 FileID SourceManager::createFileIDImpl(ContentCache &File, StringRef Filename, in createFileIDImpl()
628 SourceManager::createMacroArgExpansionLoc(SourceLocation SpellingLoc, in createMacroArgExpansionLoc()
637 SourceManager::createExpansionLoc(SourceLocation SpellingLoc, in createExpansionLoc()
649 SourceLocation SourceManager::createTokenSplitLoc(SourceLocation Spelling, in createTokenSplitLoc()
660 SourceManager::createExpansionLocImpl(const ExpansionInfo &Info, in createExpansionLocImpl()
683 SourceManager::getMemoryBufferForFileOrNone(const FileEntry *File) { in getMemoryBufferForFileOrNone()
688 void SourceManager::overrideFileContents( in overrideFileContents()
698 void SourceManager::overrideFileContents(const FileEntry *SourceFile, in overrideFileContents()
710 SourceManager::bypassFileContentsOverride(FileEntryRef File) { in bypassFileContentsOverride()
722 void SourceManager::setFileIsTransient(const FileEntry *File) { in setFileIsTransient()
727 SourceManager::getNonBuiltinFilenameForID(FileID FID) const { in getNonBuiltinFilenameForID()
734 StringRef SourceManager::getBufferData(FileID FID, bool *Invalid) const { in getBufferData()
742 SourceManager::getBufferDataIfLoaded(FileID FID) const { in getBufferDataIfLoaded()
748 llvm::Optional<StringRef> SourceManager::getBufferDataOrNone(FileID FID) const { in getBufferDataOrNone()
765 FileID SourceManager::getFileIDSlow(unsigned SLocOffset) const { in getFileIDSlow()
780 FileID SourceManager::getFileIDLocal(unsigned SLocOffset) const { in getFileIDLocal()
862 FileID SourceManager::getFileIDLoaded(unsigned SLocOffset) const { in getFileIDLoaded()
933 SourceLocation SourceManager::
948 SourceLocation SourceManager::getSpellingLocSlowCase(SourceLocation Loc) const { in getSpellingLocSlowCase()
957 SourceLocation SourceManager::getFileLocSlowCase(SourceLocation Loc) const { in getFileLocSlowCase()
969 SourceManager::getDecomposedExpansionLocSlowCase( in getDecomposedExpansionLocSlowCase()
987 SourceManager::getDecomposedSpellingLocSlowCase(const SrcMgr::SLocEntry *E, in getDecomposedSpellingLocSlowCase()
1008 SourceLocation SourceManager::getImmediateSpellingLoc(SourceLocation Loc) const{ in getImmediateSpellingLoc()
1016 StringRef SourceManager::getFilename(SourceLocation SpellingLoc) const { in getFilename()
1025 SourceManager::getImmediateExpansionRange(SourceLocation Loc) const { in getImmediateExpansionRange()
1031 SourceLocation SourceManager::getTopMacroCallerLoc(SourceLocation Loc) const { in getTopMacroCallerLoc()
1039 CharSourceRange SourceManager::getExpansionRange(SourceLocation Loc) const { in getExpansionRange()
1057 bool SourceManager::isMacroArgExpansion(SourceLocation Loc, in isMacroArgExpansion()
1070 bool SourceManager::isMacroBodyExpansion(SourceLocation Loc) const { in isMacroBodyExpansion()
1078 bool SourceManager::isAtStartOfImmediateMacroExpansion(SourceLocation Loc, in isAtStartOfImmediateMacroExpansion()
1113 bool SourceManager::isAtEndOfImmediateMacroExpansion(SourceLocation Loc, in isAtEndOfImmediateMacroExpansion()
1155 const char *SourceManager::getCharacterData(SourceLocation SL, in getCharacterData()
1181 unsigned SourceManager::getColumnNumber(FileID FID, unsigned FilePos, in getColumnNumber()
1235 unsigned SourceManager::getSpellingColumnNumber(SourceLocation Loc, in getSpellingColumnNumber()
1242 unsigned SourceManager::getExpansionColumnNumber(SourceLocation Loc, in getExpansionColumnNumber()
1249 unsigned SourceManager::getPresumedColumnNumber(SourceLocation Loc, in getPresumedColumnNumber()
1345 unsigned SourceManager::getLineNumber(FileID FID, unsigned FilePos, in getLineNumber()
1442 unsigned SourceManager::getSpellingLineNumber(SourceLocation Loc, in getSpellingLineNumber()
1448 unsigned SourceManager::getExpansionLineNumber(SourceLocation Loc, in getExpansionLineNumber()
1454 unsigned SourceManager::getPresumedLineNumber(SourceLocation Loc, in getPresumedLineNumber()
1470 SourceManager::getFileCharacteristic(SourceLocation Loc) const { in getFileCharacteristic()
1499 StringRef SourceManager::getBufferName(SourceLocation Loc, in getBufferName()
1516 PresumedLoc SourceManager::getPresumedLoc(SourceLocation Loc, in getPresumedLoc()
1592 bool SourceManager::isInMainFile(SourceLocation Loc) const { in isInMainFile()
1615 unsigned SourceManager::getFileIDSize(FileID FID) const { in getFileIDSize()
1641 SourceLocation SourceManager::translateFileLineCol(const FileEntry *SourceFile, in translateFileLineCol()
1655 FileID SourceManager::translateFile(const FileEntry *SourceFile) const { in translateFile()
1694 SourceLocation SourceManager::translateLineCol(FileID FID, in translateLineCol()
1757 void SourceManager::computeMacroArgsCache(MacroArgsMap &MacroArgsCache, in computeMacroArgsCache()
1823 void SourceManager::associateFileChunkWithMacroArgExp( in associateFileChunkWithMacroArgExp()
1912 SourceManager::getMacroArgExpandedLocation(SourceLocation Loc) const { in getMacroArgExpandedLocation()
1946 SourceManager::getDecomposedIncludedLoc(FileID FID) const { in getDecomposedIncludedLoc()
1979 const SourceManager &SM) { in MoveUpIncludeHierarchy()
1990 InBeforeInTUCacheEntry &SourceManager::getInBeforeInTUCache(FileID LFID, in getInBeforeInTUCache()
2017 bool SourceManager::isBeforeInTranslationUnit(SourceLocation LHS, in isBeforeInTranslationUnit()
2071 std::pair<bool, bool> SourceManager::isInTheSameTranslationUnit( in isInTheSameTranslationUnit()
2125 void SourceManager::PrintStats() const { in PrintStats()
2153 LLVM_DUMP_METHOD void SourceManager::dump() const { in dump()
2213 SourceManager::MemoryBufferSizes SourceManager::getMemoryBufferSizes() const { in getMemoryBufferSizes()
2231 size_t SourceManager::getDataStructureSizes() const { in getDataStructureSizes()
2263 SourceMgr = std::make_unique<SourceManager>(*Diagnostics, *FileMgr); in SourceManagerForFile()