clang
3.7.0
|
This is a discriminated union of FileInfo and ExpansionInfo. More...
#include <SourceManager.h>
Public Member Functions | |
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 390 of file SourceManager.h.
|
inlinestatic |
Definition at line 412 of file SourceManager.h.
References File.
|
inlinestatic |
Definition at line 419 of file SourceManager.h.
References Expansion.
|
inline |
Definition at line 407 of file SourceManager.h.
References Expansion, and isExpansion().
Referenced by clang::SourceManager::getDecomposedIncludedLoc(), clang::SourceManager::getImmediateExpansionRange(), clang::Lexer::getImmediateMacroName(), clang::SourceManager::getImmediateSpellingLoc(), clang::SourceManager::isAtEndOfImmediateMacroExpansion(), clang::SourceManager::isAtStartOfImmediateMacroExpansion(), clang::SourceManager::isMacroArgExpansion(), clang::SourceManager::isMacroBodyExpansion(), and clang::Lexer::makeFileCharRange().
|
inline |
Definition at line 402 of file SourceManager.h.
References File, and isFile().
Referenced by clang::SourceManager::AddLineNote(), clang::SourceManager::getBuffer(), clang::SourceManager::getBufferData(), clang::SourceManager::getCharacterData(), 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::Rewriter::IncreaseIndentation(), clang::Rewriter::InsertText(), clang::SourceManager::isInMainFile(), clang::ASTReader::ReadSLocEntry(), clang::SourceManager::setNumCreatedFIDsForFileID(), clang::SourceManager::translateFile(), and clang::SourceManager::translateLineCol().
|
inline |
Definition at line 397 of file SourceManager.h.
Referenced by clang::SourceManager::getDecomposedExpansionLoc(), clang::SourceManager::getDecomposedLoc(), clang::SourceManager::getDecomposedSpellingLoc(), clang::SourceManager::getFileIDSize(), clang::SourceManager::getLocForEndOfFile(), clang::SourceManager::getLocForStartOfFile(), clang::SourceManager::isInFileID(), and clang::SourceManager::translateLineCol().
|
inline |
Definition at line 399 of file SourceManager.h.
Referenced by clang::SourceManager::getDecomposedIncludedLoc(), getExpansion(), clang::SourceManager::isAtEndOfImmediateMacroExpansion(), clang::SourceManager::isAtStartOfImmediateMacroExpansion(), and isFile().
|
inline |
Definition at line 400 of file SourceManager.h.
References isExpansion().
Referenced by clang::SourceManager::AddLineNote(), clang::SourceManager::getBuffer(), clang::SourceManager::getBufferData(), clang::SourceManager::getCharacterData(), getFile(), 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::ASTImporter::Import(), clang::SourceManager::isInMainFile(), clang::SourceManager::setNumCreatedFIDsForFileID(), clang::SourceManager::translateFile(), and clang::SourceManager::translateLineCol().
ExpansionInfo clang::SrcMgr::SLocEntry::Expansion |
Definition at line 394 of file SourceManager.h.
Referenced by get(), and getExpansion().
FileInfo clang::SrcMgr::SLocEntry::File |
Definition at line 393 of file SourceManager.h.