Home
last modified time | relevance | path

Searched refs:SLocOffset (Results 1 – 4 of 4) sorted by relevance

/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DSourceManager.h559 virtual int getSLocEntryID(SourceLocation::UIntTy SLocOffset) = 0;
1896 FileID getFileID(SourceLocation::UIntTy SLocOffset) const { in getFileID() argument
1898 if (isOffsetInFileID(LastFileIDLookup, SLocOffset)) in getFileID()
1901 return getFileIDSlow(SLocOffset); in getFileID()
1904 bool isLocalOffset(SourceLocation::UIntTy SLocOffset) const { in isLocalOffset() argument
1905 return SLocOffset < CurrentLoadedOffset; in isLocalOffset()
1908 bool isLoadedOffset(SourceLocation::UIntTy SLocOffset) const { in isLoadedOffset() argument
1909 return SLocOffset >= CurrentLoadedOffset; in isLoadedOffset()
1922 SourceLocation::UIntTy SLocOffset) const { in isOffsetInFileID() argument
1925 if (SLocOffset < Entry.getOffset()) return false; in isOffsetInFileID()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DSourceManager.cpp783 FileID SourceManager::getFileIDSlow(SourceLocation::UIntTy SLocOffset) const { in getFileIDSlow()
784 if (!SLocOffset) in getFileIDSlow()
789 if (SLocOffset < NextLocalOffset) in getFileIDSlow()
790 return getFileIDLocal(SLocOffset); in getFileIDSlow()
791 return getFileIDLoaded(SLocOffset); in getFileIDSlow()
798 FileID SourceManager::getFileIDLocal(SourceLocation::UIntTy SLocOffset) const { in getFileIDLocal()
799 assert(SLocOffset < NextLocalOffset && "Bad function choice"); in getFileIDLocal()
821 if (LocalSLocEntryTable[LastFileIDLookup.ID].getOffset() < SLocOffset) in getFileIDLocal()
832 if (LocalSLocEntryTable[GreaterIndex].getOffset() <= SLocOffset) { in getFileIDLocal()
853 if (MidOffset > SLocOffset) { in getFileIDLocal()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Serialization/
H A DASTReader.h2173 int getSLocEntryID(SourceLocation::UIntTy SLocOffset) override;
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReader.cpp1539 int ASTReader::getSLocEntryID(SourceLocation::UIntTy SLocOffset) { in getSLocEntryID() argument
1541 GlobalSLocOffsetMap.find(SourceManager::MaxLoadedOffset - SLocOffset - 1); in getSLocEntryID()
1549 llvm::index_range(0, F->LocalNumSLocEntries), SLocOffset, in getSLocEntryID()