Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/clang/include/clang/Basic/
H A DSourceManager.h1853 FileID getFileID(SourceLocation::UIntTy SLocOffset) const { in getFileID() argument
1855 if (isOffsetInFileID(LastFileIDLookup, SLocOffset)) in getFileID()
1858 return getFileIDSlow(SLocOffset); in getFileID()
1861 bool isLocalOffset(SourceLocation::UIntTy SLocOffset) const { in isLocalOffset() argument
1862 return SLocOffset < CurrentLoadedOffset; in isLocalOffset()
1865 bool isLoadedOffset(SourceLocation::UIntTy SLocOffset) const { in isLoadedOffset() argument
1866 return SLocOffset >= CurrentLoadedOffset; in isLoadedOffset()
1882 if (SLocOffset < Entry.getOffset()) return false; in isOffsetInFileID()
1890 return SLocOffset < NextLocalOffset; in isOffsetInFileID()
1894 return SLocOffset < getSLocEntryByID(FID.ID+1).getOffset(); in isOffsetInFileID()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Basic/
H A DSourceManager.cpp769 if (!SLocOffset) in getFileIDSlow()
774 if (SLocOffset < NextLocalOffset) in getFileIDSlow()
775 return getFileIDLocal(SLocOffset); in getFileIDSlow()
776 return getFileIDLoaded(SLocOffset); in getFileIDSlow()
784 assert(SLocOffset < NextLocalOffset && "Bad function choice"); in getFileIDLocal()
806 if (LocalSLocEntryTable[LastFileIDLookup.ID].getOffset() < SLocOffset) in getFileIDLocal()
817 if (LocalSLocEntryTable[GreaterIndex].getOffset() <= SLocOffset) { in getFileIDLocal()
838 if (MidOffset > SLocOffset) { in getFileIDLocal()
845 SLocOffset < getLocalSLocEntry(MiddleIndex + 1).getOffset()) { in getFileIDLocal()
864 if (SLocOffset < CurrentLoadedOffset) { in getFileIDLoaded()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Serialization/
H A DASTReader.h2159 int getSLocEntryID(SourceLocation::UIntTy SLocOffset) override;
/freebsd-14.2/contrib/llvm-project/clang/lib/Serialization/
H A DASTReader.cpp1498 int ASTReader::getSLocEntryID(SourceLocation::UIntTy SLocOffset) { in getSLocEntryID() argument
1500 GlobalSLocOffsetMap.find(SourceManager::MaxLoadedOffset - SLocOffset - 1); in getSLocEntryID()
1508 llvm::index_range(0, F->LocalNumSLocEntries), SLocOffset, in getSLocEntryID()
4076 SourceLocation::UIntTy SLocOffset = in ReadModuleOffsetMap() local
4103 if (SLocOffset != SLocNone) in ReadModuleOffsetMap()
4105 SLocOffset, static_cast<SourceLocation::IntTy>( in ReadModuleOffsetMap()
4106 OM->SLocEntryBaseOffset - SLocOffset))); in ReadModuleOffsetMap()