• Home
  • Raw
  • Download

Lines Matching refs:FileID

190 void LineTableInfo::AddLineNote(FileID FID, unsigned Offset,  in AddLineNote()
221 void LineTableInfo::AddLineNote(FileID FID, unsigned Offset, in AddLineNote()
255 const LineEntry *LineTableInfo::FindNearestLineEntry(FileID FID, in FindNearestLineEntry()
274 void LineTableInfo::AddEntry(FileID FID, in AddEntry()
291 std::pair<FileID, unsigned> LocInfo = getDecomposedExpansionLoc(Loc); in AddLineNote()
319 std::pair<FileID, unsigned> LocInfo = getDecomposedExpansionLoc(Loc); in AddLineNote()
395 MainFileID = FileID(); in clearIDTables()
399 LastLineNoFileIDQuery = FileID(); in clearIDTables()
401 LastFileIDLookup = FileID(); in clearIDTables()
517 FileID SourceManager::getPreviousFileID(FileID FID) const { in getPreviousFileID()
519 return FileID(); in getPreviousFileID()
523 return FileID(); in getPreviousFileID()
527 return FileID(); in getPreviousFileID()
529 return FileID(); in getPreviousFileID()
532 return FileID::get(ID-1); in getPreviousFileID()
537 FileID SourceManager::getNextFileID(FileID FID) const { in getNextFileID()
539 return FileID(); in getNextFileID()
544 return FileID(); in getNextFileID()
546 return FileID(); in getNextFileID()
549 return FileID::get(ID+1); in getNextFileID()
559 FileID SourceManager::createFileID(const ContentCache *File, in createFileID()
571 return FileID::get(LoadedID); in createFileID()
586 FileID FID = FileID::get(LocalSLocEntryTable.size()-1); in createFileID()
682 StringRef SourceManager::getBufferData(FileID FID, bool *Invalid) const { in getBufferData()
711 FileID SourceManager::getFileIDSlow(unsigned SLocOffset) const { in getFileIDSlow()
713 return FileID::get(0); in getFileIDSlow()
726 FileID SourceManager::getFileIDLocal(unsigned SLocOffset) const { in getFileIDLocal()
757 FileID Res = FileID::get(int(I - LocalSLocEntryTable.begin())); in getFileIDLocal()
783 return FileID::get(0); in getFileIDLocal()
797 if (isOffsetInFileID(FileID::get(MiddleIndex), SLocOffset)) { in getFileIDLocal()
798 FileID Res = FileID::get(MiddleIndex); in getFileIDLocal()
817 FileID SourceManager::getFileIDLoaded(unsigned SLocOffset) const { in getFileIDLoaded()
821 return FileID(); in getFileIDLoaded()
840 FileID Res = FileID::get(-int(I) - 2); in getFileIDLoaded()
860 return FileID(); // invalid entry. in getFileIDLoaded()
868 return FileID(); in getFileIDLoaded()
874 if (isOffsetInFileID(FileID::get(-int(MiddleIndex) - 2), SLocOffset)) { in getFileIDLoaded()
875 FileID Res = FileID::get(-int(MiddleIndex) - 2); in getFileIDLoaded()
885 return FileID(); in getFileIDLoaded()
908 std::pair<FileID, unsigned> LocInfo = getDecomposedLoc(Loc); in getSpellingLocSlowCase()
926 std::pair<FileID, unsigned>
930 FileID FID; in getDecomposedExpansionLocSlowCase()
944 std::pair<FileID, unsigned>
948 FileID FID; in getDecomposedSpellingLocSlowCase()
968 std::pair<FileID, unsigned> LocInfo = getDecomposedLoc(Loc); in getImmediateSpellingLoc()
1005 FileID FID = getFileID(Loc); in isMacroArgExpansion()
1017 FileID FID = getFileID(Loc); in isMacroBodyExpansion()
1026 std::pair<FileID, unsigned> DecompLoc = getDecomposedLoc(Loc); in isAtStartOfImmediateMacroExpansion()
1041 FileID PrevFID = getPreviousFileID(DecompLoc.first); in isAtStartOfImmediateMacroExpansion()
1061 FileID FID = getFileID(Loc); in isAtEndOfImmediateMacroExpansion()
1076 FileID NextFID = getNextFileID(FID); in isAtEndOfImmediateMacroExpansion()
1104 std::pair<FileID, unsigned> LocInfo = getDecomposedSpellingLoc(SL); in getCharacterData()
1125 unsigned SourceManager::getColumnNumber(FileID FID, unsigned FilePos, in getColumnNumber()
1173 std::pair<FileID, unsigned> LocInfo = getDecomposedSpellingLoc(Loc); in getSpellingColumnNumber()
1180 std::pair<FileID, unsigned> LocInfo = getDecomposedExpansionLoc(Loc); in getExpansionColumnNumber()
1283 unsigned SourceManager::getLineNumber(FileID FID, unsigned FilePos, in getLineNumber()
1380 std::pair<FileID, unsigned> LocInfo = getDecomposedSpellingLoc(Loc); in getSpellingLineNumber()
1386 std::pair<FileID, unsigned> LocInfo = getDecomposedExpansionLoc(Loc); in getExpansionLineNumber()
1406 std::pair<FileID, unsigned> LocInfo = getDecomposedExpansionLoc(Loc); in getFileCharacteristic()
1454 std::pair<FileID, unsigned> LocInfo = getDecomposedExpansionLoc(Loc); in getPresumedLoc()
1524 std::pair<FileID, unsigned> LocInfo = getDecomposedExpansionLoc(Loc); in isInMainFile()
1544 unsigned SourceManager::getFileIDSize(FileID FID) const { in getFileIDSize()
1557 NextOffset = getSLocEntry(FileID::get(ID+1)).getOffset(); in getFileIDSize()
1592 FileID FirstFID = translateFile(SourceFile); in translateFileLineCol()
1600 FileID SourceManager::translateFile(const FileEntry *SourceFile) const { in translateFile()
1604 FileID FirstFID; in translateFile()
1614 return FileID(); in translateFile()
1651 return FileID(); in translateFile()
1656 FirstFID = FileID::get(I); in translateFile()
1667 FirstFID = FileID::get(-int(I) - 2); in translateFile()
1683 FileID IFileID; in translateFile()
1687 return FileID(); in translateFile()
1699 FirstFID = FileID::get(I); in translateFile()
1715 SourceLocation SourceManager::translateLineCol(FileID FID, in translateLineCol()
1782 FileID FID) const { in computeMacroArgsCache()
1833 getFileIDSize(FileID::get(ID))); in computeMacroArgsCache()
1839 FileID FID, in associateFileChunkWithMacroArgExp()
1852 FileID SpellFID; // Current FileID in the spelling range. in associateFileChunkWithMacroArgExp()
1931 FileID FID; in getMacroArgExpandedLocation()
1953 std::pair<FileID, unsigned>
1954 SourceManager::getDecomposedIncludedLoc(FileID FID) const { in getDecomposedIncludedLoc()
1956 return std::make_pair(FileID(), 0); in getDecomposedIncludedLoc()
1960 typedef std::pair<FileID, unsigned> DecompTy; in getDecomposedIncludedLoc()
1961 typedef llvm::DenseMap<FileID, DecompTy> MapTy; in getDecomposedIncludedLoc()
1988 static bool MoveUpIncludeHierarchy(std::pair<FileID, unsigned> &Loc, in MoveUpIncludeHierarchy() argument
1990 std::pair<FileID, unsigned> UpperLoc = SM.getDecomposedIncludedLoc(Loc.first); in MoveUpIncludeHierarchy()
2000 InBeforeInTUCacheEntry &SourceManager::getInBeforeInTUCache(FileID LFID, in getInBeforeInTUCache()
2001 FileID RFID) const { in getInBeforeInTUCache()
2033 std::pair<FileID, unsigned> LOffs = getDecomposedLoc(LHS); in isBeforeInTranslationUnit()
2034 std::pair<FileID, unsigned> ROffs = getDecomposedLoc(RHS); in isBeforeInTranslationUnit()
2065 typedef llvm::SmallDenseMap<FileID, unsigned, 16> LocSet; in isBeforeInTranslationUnit()