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;
1906 FileID getFileID(SourceLocation::UIntTy SLocOffset) const { in getFileID() argument
1908 if (SLocOffset >= LastLookupStartOffset && SLocOffset < LastLookupEndOffset) in getFileID()
1910 return getFileIDSlow(SLocOffset); in getFileID()
1913 bool isLocalOffset(SourceLocation::UIntTy SLocOffset) const { in isLocalOffset() argument
1914 return SLocOffset < CurrentLoadedOffset; in isLocalOffset()
1917 bool isLoadedOffset(SourceLocation::UIntTy SLocOffset) const { in isLoadedOffset() argument
1918 return SLocOffset >= CurrentLoadedOffset; in isLoadedOffset()
1931 SourceLocation::UIntTy SLocOffset) const { in isOffsetInFileID() argument
1934 if (SLocOffset < Entry.getOffset()) return false; in isOffsetInFileID()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DSourceManager.cpp796 FileID SourceManager::getFileIDSlow(SourceLocation::UIntTy SLocOffset) const { in getFileIDSlow()
797 if (!SLocOffset) in getFileIDSlow()
802 if (SLocOffset < NextLocalOffset) in getFileIDSlow()
803 return getFileIDLocal(SLocOffset); in getFileIDSlow()
804 return getFileIDLoaded(SLocOffset); in getFileIDSlow()
811 FileID SourceManager::getFileIDLocal(SourceLocation::UIntTy SLocOffset) const { in getFileIDLocal()
812 assert(SLocOffset < NextLocalOffset && "Bad function choice"); in getFileIDLocal()
813 assert(SLocOffset >= LocalSLocEntryTable[0].getOffset() && SLocOffset > 0 && in getFileIDLocal()
837 if (LastLookupStartOffset < SLocOffset) in getFileIDLocal()
847 if (LocalLocOffsetTable[GreaterIndex] <= SLocOffset) { in getFileIDLocal()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Serialization/
H A DASTReader.h2369 int getSLocEntryID(SourceLocation::UIntTy SLocOffset) override;
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReader.cpp1717 int ASTReader::getSLocEntryID(SourceLocation::UIntTy SLocOffset) { in getSLocEntryID() argument
1719 GlobalSLocOffsetMap.find(SourceManager::MaxLoadedOffset - SLocOffset - 1); in getSLocEntryID()
1727 llvm::index_range(0, F->LocalNumSLocEntries), SLocOffset, in getSLocEntryID()