clang 20.0.0git
|
This is a discriminated union of FileInfo and ExpansionInfo. More...
#include "clang/Basic/SourceManager.h"
Public Member Functions | |
SLocEntry () | |
SourceLocation::UIntTy | getOffset () const |
bool | isExpansion () const |
bool | isFile () const |
const FileInfo & | getFile () const |
FileInfo & | getFile () |
const ExpansionInfo & | getExpansion () const |
Static Public Member Functions | |
static SLocEntry | getOffsetOnly (SourceLocation::UIntTy Offset) |
Creates an incomplete SLocEntry that is only able to report its offset. | |
static SLocEntry | get (SourceLocation::UIntTy Offset, const FileInfo &FI) |
static SLocEntry | get (SourceLocation::UIntTy Offset, const ExpansionInfo &Expansion) |
This is a discriminated union of FileInfo and ExpansionInfo.
SourceManager keeps an array of these objects, and they are uniquely identified by the FileID datatype.
Definition at line 481 of file SourceManager.h.
|
inline |
Definition at line 492 of file SourceManager.h.
|
inlinestatic |
Definition at line 530 of file SourceManager.h.
|
inlinestatic |
Definition at line 521 of file SourceManager.h.
References E.
|
inline |
Definition at line 508 of file SourceManager.h.
References Expansion, and isExpansion().
Referenced by EvaluateDefined(), clang::SourceManager::getDecomposedIncludedLoc(), clang::SourceManager::getImmediateExpansionRange(), clang::SourceManager::getImmediateSpellingLoc(), clang::ASTImporter::Import(), clang::SourceManager::isAtEndOfImmediateMacroExpansion(), clang::SourceManager::isAtStartOfImmediateMacroExpansion(), isFunctionMacroExpansion(), clang::SourceManager::isMacroArgExpansion(), clang::SourceManager::isMacroBodyExpansion(), and clang::Lexer::makeFileCharRange().
|
inline |
Definition at line 503 of file SourceManager.h.
|
inline |
Definition at line 499 of file SourceManager.h.
References getFile().
Referenced by clang::SourceManager::AddLineNote(), clang::SourceManager::getCharacterData(), clang::SourceManager::getDecomposedIncludedLoc(), getFile(), clang::SourceManager::getFileCharacteristic(), clang::SourceManager::getFileEntryForSLocEntry(), clang::SourceManager::getLineNumber(), getNullabilityCompletenessCheckFileID(), clang::SourceManager::getPresumedLoc(), clang::ScratchBuffer::getToken(), clang::ASTImporter::Import(), clang::index::IndexingContext::importedModule(), clang::Rewriter::IncreaseIndentation(), clang::Rewriter::InsertText(), clang::SourceManager::isInMainFile(), clang::SourceManager::translateFile(), and clang::SourceManager::translateLineCol().
|
inline |
Definition at line 494 of file SourceManager.h.
Referenced by clang::SourceManager::getFileIDSize(), clang::SourceManager::isInFileID(), and clang::SourceManager::translateLineCol().
|
inlinestatic |
Creates an incomplete SLocEntry that is only able to report its offset.
Definition at line 514 of file SourceManager.h.
References E.
|
inline |
Definition at line 496 of file SourceManager.h.
Referenced by clang::SourceManager::getDecomposedIncludedLoc(), getExpansion(), clang::ASTImporter::Import(), clang::SourceManager::isAtEndOfImmediateMacroExpansion(), clang::SourceManager::isAtStartOfImmediateMacroExpansion(), and isFile().
|
inline |
Definition at line 497 of file SourceManager.h.
References isExpansion().
Referenced by clang::SourceManager::AddLineNote(), clang::SourceManager::getCharacterData(), getFile(), clang::SourceManager::getLineNumber(), getNullabilityCompletenessCheckFileID(), clang::SourceManager::getPresumedLoc(), clang::index::IndexingContext::importedModule(), clang::SourceManager::translateFile(), and clang::SourceManager::translateLineCol().
ExpansionInfo clang::SrcMgr::SLocEntry::Expansion |
Definition at line 488 of file SourceManager.h.
Referenced by get(), and getExpansion().
FileInfo clang::SrcMgr::SLocEntry::File |
Definition at line 487 of file SourceManager.h.
Referenced by getFile().