Lines Matching refs:FID
197 void LineTableInfo::AddLineNote(FileID FID, unsigned Offset, in AddLineNote() argument
199 std::vector<LineEntry> &Entries = LineEntries[FID]; in AddLineNote()
228 void LineTableInfo::AddLineNote(FileID FID, unsigned Offset, in AddLineNote() argument
234 std::vector<LineEntry> &Entries = LineEntries[FID]; in AddLineNote()
251 FindNearestLineEntry(FID, Entries.back().IncludeOffset)) in AddLineNote()
262 const LineEntry *LineTableInfo::FindNearestLineEntry(FileID FID, in FindNearestLineEntry() argument
264 const std::vector<LineEntry> &Entries = LineEntries[FID]; in FindNearestLineEntry()
281 void LineTableInfo::AddEntry(FileID FID, in AddEntry() argument
283 LineEntries[FID] = Entries; in AddEntry()
573 FileID FID = FileID::get(LocalSLocEntryTable.size()-1); in createFileID() local
574 return LastFileIDLookup = FID; in createFileID()
665 StringRef SourceManager::getBufferData(FileID FID, bool *Invalid) const { in getBufferData() argument
667 const SLocEntry &SLoc = getSLocEntry(FID, &MyInvalid); in getBufferData()
914 FileID FID; in getDecomposedExpansionLocSlowCase() local
920 FID = getFileID(Loc); in getDecomposedExpansionLocSlowCase()
921 E = &getSLocEntry(FID); in getDecomposedExpansionLocSlowCase()
925 return std::make_pair(FID, Offset); in getDecomposedExpansionLocSlowCase()
932 FileID FID; in getDecomposedSpellingLocSlowCase() local
938 FID = getFileID(Loc); in getDecomposedSpellingLocSlowCase()
939 E = &getSLocEntry(FID); in getDecomposedSpellingLocSlowCase()
943 return std::make_pair(FID, Offset); in getDecomposedSpellingLocSlowCase()
988 FileID FID = getFileID(Loc); in isMacroArgExpansion() local
989 const SrcMgr::ExpansionInfo &Expansion = getSLocEntry(FID).getExpansion(); in isMacroArgExpansion()
996 FileID FID = getFileID(Loc); in isMacroBodyExpansion() local
997 const SrcMgr::ExpansionInfo &Expansion = getSLocEntry(FID).getExpansion(); in isMacroBodyExpansion()
1034 unsigned SourceManager::getColumnNumber(FileID FID, unsigned FilePos, in getColumnNumber() argument
1037 const llvm::MemoryBuffer *MemBuf = getBuffer(FID, &MyInvalid); in getColumnNumber()
1053 if (LastLineNoFileIDQuery == FID && in getColumnNumber()
1193 unsigned SourceManager::getLineNumber(FileID FID, unsigned FilePos, in getLineNumber() argument
1195 if (FID.isInvalid()) { in getLineNumber()
1202 if (LastLineNoFileIDQuery == FID) in getLineNumber()
1206 const SLocEntry &Entry = getSLocEntry(FID, &MyInvalid); in getLineNumber()
1249 if (LastLineNoFileIDQuery == FID) { in getLineNumber()
1305 LastLineNoFileIDQuery = FID; in getLineNumber()
1449 unsigned SourceManager::getFileIDSize(FileID FID) const { in getFileIDSize()
1451 const SrcMgr::SLocEntry &Entry = getSLocEntry(FID, &Invalid); in getFileIDSize()
1455 int ID = FID.ID; in getFileIDSize()
1617 SourceLocation SourceManager::translateLineCol(FileID FID, in translateLineCol() argument
1620 if (FID.isInvalid()) in translateLineCol()
1624 const SLocEntry &Entry = getSLocEntry(FID, &Invalid); in translateLineCol()
1683 FileID FID) const { in computeMacroArgsCache()
1684 assert(!FID.isInvalid()); in computeMacroArgsCache()
1692 int ID = FID.ID; in computeMacroArgsCache()
1708 if (!isInFileID(IncludeLoc, FID)) in computeMacroArgsCache()
1721 if (!isInFileID(ExpInfo.getExpansionLocStart(), FID)) in computeMacroArgsCache()
1728 associateFileChunkWithMacroArgExp(MacroArgsCache, FID, in computeMacroArgsCache()
1737 FileID FID, in associateFileChunkWithMacroArgExp() argument
1765 associateFileChunkWithMacroArgExp(MacroArgsCache, FID, in associateFileChunkWithMacroArgExp()
1786 if (!isInFileID(SpellLoc, FID, &BeginOffs)) in associateFileChunkWithMacroArgExp()
1829 FileID FID; in getMacroArgExpandedLocation() local
1831 llvm::tie(FID, Offset) = getDecomposedLoc(Loc); in getMacroArgExpandedLocation()
1832 if (FID.isInvalid()) in getMacroArgExpandedLocation()
1835 MacroArgsMap *&MacroArgsCache = MacroArgsCacheMap[FID]; in getMacroArgExpandedLocation()
1837 computeMacroArgsCache(MacroArgsCache, FID); in getMacroArgExpandedLocation()