46 SourceLocation() =
delete;
47 SourceLocation(
FileID fileId,
unsigned line,
unsigned column);
49 FileID fileID()
const {
return fileId_; }
50 unsigned line()
const {
return line_; }
51 unsigned column()
const {
return column_; }
59 static SourceLocation
fromClang(
const clang::SourceLocation &loc,
60 const clang::SourceManager &sm,
77 SourceRange() =
delete;
88 static SourceRange
fromClang(
const clang::SourceRange &range,
89 const clang::SourceManager &sm,
Centralized file registry with path-to-FileID mapping.
std::size_t FileID
Type-safe identifier for registered files. 0 is reserved for invalid.
Centralized file registry providing path-to-FileID mapping.
static constexpr FileID InvalidFileID
Reserved invalid FileID.
Represents a specific position in source code.
static void resetCache()
Reset internal caches (per extraction run).
static SourceLocation fromClang(const clang::SourceLocation &loc, const clang::SourceManager &sm, FileManager &fileMgr)
Create SourceLocation from Clang's SourceLocation.
static SourceRange fromClang(const clang::SourceRange &range, const clang::SourceManager &sm, FileManager &fileMgr)
Create SourceRange from Clang's SourceRange.
static void resetCache()
Reset internal caches (per extraction run).