clang
7.0.0
|
This is a discriminated union of FileInfo and ExpansionInfo. More...
#include "clang/Basic/SourceManager.h"
Public Member Functions | |
SLocEntry () | |
unsigned | getOffset () const |
bool | isExpansion () const |
bool | isFile () const |
const FileInfo & | getFile () const |
const ExpansionInfo & | getExpansion () const |
Static Public Member Functions | |
static SLocEntry | get (unsigned Offset, const FileInfo &FI) |
static SLocEntry | get (unsigned 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 425 of file SourceManager.h.
|
inline |
Definition at line 434 of file SourceManager.h.
|
inlinestatic |
Definition at line 451 of file SourceManager.h.
|
inlinestatic |
Definition at line 460 of file SourceManager.h.
|
inline |
Definition at line 446 of file SourceManager.h.
Referenced by 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 441 of file SourceManager.h.
Referenced by clang::SourceManager::AddLineNote(), clang::SourceManager::getBuffer(), clang::SourceManager::getBufferData(), clang::SourceManager::getDecomposedIncludedLoc(), clang::SourceManager::getFileCharacteristic(), clang::SourceManager::getFileEntryForID(), clang::SourceManager::getFileEntryForSLocEntry(), clang::SourceManager::getIncludeLoc(), clang::SourceManager::getLineNumber(), getNullabilityCompletenessCheckFileID(), clang::SourceManager::getNumCreatedFIDsForFileID(), clang::SourceManager::getPresumedLoc(), clang::ASTImporter::Import(), clang::index::IndexingContext::importedModule(), clang::SourceManager::isInMainFile(), clang::SourceManager::setNumCreatedFIDsForFileID(), shouldReportOccurrenceForSystemDeclOnlyMode(), clang::SourceManager::translateFile(), and clang::SourceManager::translateLineCol().
|
inline |
Definition at line 436 of file SourceManager.h.
Referenced by clang::SourceManager::getComposedLoc(), clang::SourceManager::getFileIDSize(), clang::SourceManager::getLocForEndOfFile(), clang::SourceManager::getLocForStartOfFile(), and clang::SourceManager::translateLineCol().
|
inline |
Definition at line 438 of file SourceManager.h.
Referenced by clang::SourceManager::getDecomposedIncludedLoc(), clang::ASTImporter::Import(), clang::SourceManager::isAtEndOfImmediateMacroExpansion(), and clang::SourceManager::isAtStartOfImmediateMacroExpansion().
|
inline |
Definition at line 439 of file SourceManager.h.
Referenced by clang::SourceManager::AddLineNote(), clang::SourceManager::getBuffer(), clang::SourceManager::getBufferData(), clang::SourceManager::getCharacterData(), clang::SourceManager::getComposedLoc(), clang::ASTWriter::getDeclID(), clang::SourceManager::getFileCharacteristic(), clang::SourceManager::getFileEntryForID(), clang::SourceManager::getIncludeLoc(), clang::SourceManager::getLineNumber(), clang::SourceManager::getLocForEndOfFile(), clang::SourceManager::getLocForStartOfFile(), getNullabilityCompletenessCheckFileID(), clang::SourceManager::getNumCreatedFIDsForFileID(), clang::SourceManager::getPresumedLoc(), clang::index::IndexingContext::importedModule(), clang::SourceManager::isInMainFile(), clang::SourceManager::setNumCreatedFIDsForFileID(), shouldReportOccurrenceForSystemDeclOnlyMode(), clang::SourceManager::translateFile(), and clang::SourceManager::translateLineCol().
ExpansionInfo clang::SrcMgr::SLocEntry::Expansion |
Definition at line 430 of file SourceManager.h.
FileInfo clang::SrcMgr::SLocEntry::File |
Definition at line 429 of file SourceManager.h.