Lines Matching refs:FID
190 void LineTableInfo::AddLineNote(FileID FID, unsigned Offset, in AddLineNote() argument
192 std::vector<LineEntry> &Entries = LineEntries[FID]; in AddLineNote()
221 void LineTableInfo::AddLineNote(FileID FID, unsigned Offset, in AddLineNote() argument
227 std::vector<LineEntry> &Entries = LineEntries[FID]; in AddLineNote()
244 FindNearestLineEntry(FID, Entries.back().IncludeOffset)) in AddLineNote()
255 const LineEntry *LineTableInfo::FindNearestLineEntry(FileID FID, in FindNearestLineEntry() argument
257 const std::vector<LineEntry> &Entries = LineEntries[FID]; in FindNearestLineEntry()
274 void LineTableInfo::AddEntry(FileID FID, in AddEntry() argument
276 LineEntries[FID] = Entries; in AddEntry()
517 FileID SourceManager::getPreviousFileID(FileID FID) const { in getPreviousFileID()
518 if (FID.isInvalid()) in getPreviousFileID()
521 int ID = FID.ID; in getPreviousFileID()
537 FileID SourceManager::getNextFileID(FileID FID) const { in getNextFileID()
538 if (FID.isInvalid()) in getNextFileID()
541 int ID = FID.ID; in getNextFileID()
586 FileID FID = FileID::get(LocalSLocEntryTable.size()-1); in createFileID() local
587 return LastFileIDLookup = FID; in createFileID()
682 StringRef SourceManager::getBufferData(FileID FID, bool *Invalid) const { in getBufferData() argument
684 const SLocEntry &SLoc = getSLocEntry(FID, &MyInvalid); in getBufferData()
930 FileID FID; in getDecomposedExpansionLocSlowCase() local
936 FID = getFileID(Loc); in getDecomposedExpansionLocSlowCase()
937 E = &getSLocEntry(FID); in getDecomposedExpansionLocSlowCase()
941 return std::make_pair(FID, Offset); in getDecomposedExpansionLocSlowCase()
948 FileID FID; in getDecomposedSpellingLocSlowCase() local
954 FID = getFileID(Loc); in getDecomposedSpellingLocSlowCase()
955 E = &getSLocEntry(FID); in getDecomposedSpellingLocSlowCase()
959 return std::make_pair(FID, Offset); in getDecomposedSpellingLocSlowCase()
1005 FileID FID = getFileID(Loc); in isMacroArgExpansion() local
1006 const SrcMgr::ExpansionInfo &Expansion = getSLocEntry(FID).getExpansion(); in isMacroArgExpansion()
1017 FileID FID = getFileID(Loc); in isMacroBodyExpansion() local
1018 const SrcMgr::ExpansionInfo &Expansion = getSLocEntry(FID).getExpansion(); in isMacroBodyExpansion()
1061 FileID FID = getFileID(Loc); in isAtEndOfImmediateMacroExpansion() local
1063 if (isInFileID(NextLoc, FID)) in isAtEndOfImmediateMacroExpansion()
1068 getSLocEntry(FID, &Invalid).getExpansion(); in isAtEndOfImmediateMacroExpansion()
1076 FileID NextFID = getNextFileID(FID); in isAtEndOfImmediateMacroExpansion()
1125 unsigned SourceManager::getColumnNumber(FileID FID, unsigned FilePos, in getColumnNumber() argument
1128 llvm::MemoryBuffer *MemBuf = getBuffer(FID, &MyInvalid); in getColumnNumber()
1144 if (LastLineNoFileIDQuery == FID && in getColumnNumber()
1289 unsigned SourceManager::getLineNumber(FileID FID, unsigned FilePos, in getLineNumber() argument
1291 if (FID.isInvalid()) { in getLineNumber()
1298 if (LastLineNoFileIDQuery == FID) in getLineNumber()
1302 const SLocEntry &Entry = getSLocEntry(FID, &MyInvalid); in getLineNumber()
1345 if (LastLineNoFileIDQuery == FID) { in getLineNumber()
1376 LastLineNoFileIDQuery = FID; in getLineNumber()
1551 unsigned SourceManager::getFileIDSize(FileID FID) const { in getFileIDSize()
1553 const SrcMgr::SLocEntry &Entry = getSLocEntry(FID, &Invalid); in getFileIDSize()
1557 int ID = FID.ID; in getFileIDSize()
1722 SourceLocation SourceManager::translateLineCol(FileID FID, in translateLineCol() argument
1729 if (FID.isInvalid()) in translateLineCol()
1733 const SLocEntry &Entry = getSLocEntry(FID, &Invalid); in translateLineCol()
1789 FileID FID) const { in computeMacroArgsCache()
1790 assert(FID.isValid()); in computeMacroArgsCache()
1798 int ID = FID.ID; in computeMacroArgsCache()
1817 if (!isInFileID(IncludeLoc, FID)) in computeMacroArgsCache()
1830 if (!isInFileID(ExpInfo.getExpansionLocStart(), FID)) in computeMacroArgsCache()
1837 associateFileChunkWithMacroArgExp(MacroArgsCache, FID, in computeMacroArgsCache()
1846 FileID FID, in associateFileChunkWithMacroArgExp() argument
1874 associateFileChunkWithMacroArgExp(MacroArgsCache, FID, in associateFileChunkWithMacroArgExp()
1895 if (!isInFileID(SpellLoc, FID, &BeginOffs)) in associateFileChunkWithMacroArgExp()
1938 FileID FID; in getMacroArgExpandedLocation() local
1940 std::tie(FID, Offset) = getDecomposedLoc(Loc); in getMacroArgExpandedLocation()
1941 if (FID.isInvalid()) in getMacroArgExpandedLocation()
1944 MacroArgsMap *&MacroArgsCache = MacroArgsCacheMap[FID]; in getMacroArgExpandedLocation()
1946 computeMacroArgsCache(MacroArgsCache, FID); in getMacroArgExpandedLocation()
1961 SourceManager::getDecomposedIncludedLoc(FileID FID) const { in getDecomposedIncludedLoc()
1962 if (FID.isInvalid()) in getDecomposedIncludedLoc()
1970 InsertOp = IncludedLocMap.insert(std::make_pair(FID, DecompTy())); in getDecomposedIncludedLoc()
1977 const SrcMgr::SLocEntry &Entry = getSLocEntry(FID, &Invalid); in getDecomposedIncludedLoc()