clang
6.0.0
|
An object for streaming information from a record. More...
#include "clang/Serialization/ASTReader.h"
Public Member Functions | |
ASTRecordReader (ASTReader &Reader, ModuleFile &F) | |
Construct an ASTRecordReader that uses the default encoding scheme. More... | |
unsigned | readRecord (llvm::BitstreamCursor &Cursor, unsigned AbbrevID) |
Reads a record with id AbbrevID from Cursor, resetting the internal state. More... | |
bool | isModule () const |
Is this a module file for a module (rather than a PCH or similar). More... | |
ASTContext & | getContext () |
Retrieve the AST context that this AST reader supplements. More... | |
unsigned | getIdx () const |
The current position in this record. More... | |
size_t | size () const |
The length of this record. More... | |
const uint64_t & | operator[] (size_t N) |
An arbitrary index in this record. More... | |
const uint64_t & | back () const |
The last element in this record. More... | |
const uint64_t & | readInt () |
Returns the current value in this record, and advances to the next value. More... | |
const uint64_t & | peekInt () |
Returns the current value in this record, without advancing. More... | |
void | skipInts (unsigned N) |
Skips the specified number of values. More... | |
serialization::SubmoduleID | getGlobalSubmoduleID (unsigned LocalID) |
Retrieve the global submodule ID its local ID number. More... | |
Module * | getSubmodule (serialization::SubmoduleID GlobalID) |
Retrieve the submodule that corresponds to a global submodule ID. More... | |
bool | readLexicalDeclContextStorage (uint64_t Offset, DeclContext *DC) |
Read the record that describes the lexical contents of a DC. More... | |
bool | readVisibleDeclContextStorage (uint64_t Offset, serialization::DeclID ID) |
Read the record that describes the visible contents of a DC. More... | |
void | readExceptionSpec (SmallVectorImpl< QualType > &ExceptionStorage, FunctionProtoType::ExceptionSpecInfo &ESI) |
uint64_t | getGlobalBitOffset (uint32_t LocalOffset) |
Get the global offset corresponding to a local offset. More... | |
Stmt * | readStmt () |
Reads a statement. More... | |
Expr * | readExpr () |
Reads an expression. More... | |
Stmt * | readSubStmt () |
Reads a sub-statement operand during statement reading. More... | |
Expr * | readSubExpr () |
Reads a sub-expression operand during statement reading. More... | |
template<typename T > | |
T * | GetLocalDeclAs (uint32_t LocalID) |
Reads a declaration with the given local ID in the given module. More... | |
TemplateArgumentLocInfo | getTemplateArgumentLocInfo (TemplateArgument::ArgKind Kind) |
Reads a TemplateArgumentLocInfo appropriate for the given TemplateArgument kind, advancing Idx. More... | |
TemplateArgumentLoc | readTemplateArgumentLoc () |
Reads a TemplateArgumentLoc, advancing Idx. More... | |
const ASTTemplateArgumentListInfo * | readASTTemplateArgumentListInfo () |
TypeSourceInfo * | getTypeSourceInfo () |
Reads a declarator info from the given record, advancing Idx. More... | |
serialization::TypeID | getGlobalTypeID (unsigned LocalID) const |
Map a local type ID within a given AST file to a global type ID. More... | |
QualType | readType () |
Read a type from the current position in the record. More... | |
serialization::DeclID | readDeclID () |
Reads a declaration ID from the given position in this record. More... | |
Decl * | readDecl () |
Reads a declaration from the given position in a record in the given module, advancing Idx. More... | |
template<typename T > | |
T * | readDeclAs () |
Reads a declaration from the given position in the record, advancing Idx. More... | |
IdentifierInfo * | getIdentifierInfo () |
Selector | readSelector () |
Read a selector from the Record, advancing Idx. More... | |
DeclarationName | readDeclarationName () |
Read a declaration name, advancing Idx. More... | |
void | readDeclarationNameLoc (DeclarationNameLoc &DNLoc, DeclarationName Name) |
void | readDeclarationNameInfo (DeclarationNameInfo &NameInfo) |
void | readQualifierInfo (QualifierInfo &Info) |
NestedNameSpecifier * | readNestedNameSpecifier () |
NestedNameSpecifierLoc | readNestedNameSpecifierLoc () |
TemplateName | readTemplateName () |
Read a template name, advancing Idx. More... | |
TemplateArgument | readTemplateArgument (bool Canonicalize=false) |
Read a template argument, advancing Idx. More... | |
TemplateParameterList * | readTemplateParameterList () |
Read a template parameter list, advancing Idx. More... | |
void | readTemplateArgumentList (SmallVectorImpl< TemplateArgument > &TemplArgs, bool Canonicalize=false) |
Read a template argument array, advancing Idx. More... | |
void | readUnresolvedSet (LazyASTUnresolvedSet &Set) |
Read a UnresolvedSet structure, advancing Idx. More... | |
CXXBaseSpecifier | readCXXBaseSpecifier () |
Read a C++ base specifier, advancing Idx. More... | |
CXXCtorInitializer ** | readCXXCtorInitializers () |
Read a CXXCtorInitializer array, advancing Idx. More... | |
CXXTemporary * | readCXXTemporary () |
SourceLocation | readSourceLocation () |
Read a source location, advancing Idx. More... | |
SourceRange | readSourceRange () |
Read a source range, advancing Idx. More... | |
llvm::APInt | readAPInt () |
Read an integral value, advancing Idx. More... | |
llvm::APSInt | readAPSInt () |
Read a signed integral value, advancing Idx. More... | |
llvm::APFloat | readAPFloat (const llvm::fltSemantics &Sem) |
Read a floating-point value, advancing Idx. More... | |
std::string | readString () |
Read a string, advancing Idx. More... | |
std::string | readPath () |
Read a path, advancing Idx. More... | |
VersionTuple | readVersionTuple () |
Read a version tuple, advancing Idx. More... | |
void | readAttributes (AttrVec &Attrs) |
Reads attributes from the current stream position, advancing Idx. More... | |
Token | readToken () |
Reads a token out of a record, advancing Idx. More... | |
void | recordSwitchCaseID (SwitchCase *SC, unsigned ID) |
SwitchCase * | getSwitchCaseWithID (unsigned ID) |
Retrieve the switch-case statement with the given ID. More... | |
An object for streaming information from a record.
Definition at line 2327 of file ASTReader.h.
|
inline |
Construct an ASTRecordReader that uses the default encoding scheme.
Definition at line 2340 of file ASTReader.h.
|
inline |
The last element in this record.
Definition at line 2362 of file ASTReader.h.
|
inline |
Retrieve the AST context that this AST reader supplements.
Definition at line 2350 of file ASTReader.h.
References clang::ASTReader::getContext().
|
inline |
Get the global offset corresponding to a local offset.
Definition at line 2404 of file ASTReader.h.
|
inline |
Retrieve the global submodule ID its local ID number.
Definition at line 2376 of file ASTReader.h.
References clang::ASTReader::getGlobalSubmoduleID().
|
inline |
Map a local type ID within a given AST file to a global type ID.
Definition at line 2452 of file ASTReader.h.
References clang::ASTReader::getGlobalTypeID().
|
inline |
Definition at line 2484 of file ASTReader.h.
References clang::ASTReader::GetIdentifierInfo().
|
inline |
The current position in this record.
Definition at line 2353 of file ASTReader.h.
|
inline |
Reads a declaration with the given local ID in the given module.
Definition at line 2424 of file ASTReader.h.
References clang::ASTReader::GetLocalDecl().
|
inline |
Retrieve the submodule that corresponds to a global submodule ID.
Definition at line 2381 of file ASTReader.h.
References clang::ASTReader::getSubmodule().
|
inline |
Retrieve the switch-case statement with the given ID.
Definition at line 2612 of file ASTReader.h.
References clang::ASTReader::getSwitchCaseWithID().
|
inline |
Reads a TemplateArgumentLocInfo appropriate for the given TemplateArgument kind, advancing Idx.
Definition at line 2431 of file ASTReader.h.
References clang::ASTReader::GetTemplateArgumentLocInfo().
|
inline |
Reads a declarator info from the given record, advancing Idx.
Definition at line 2447 of file ASTReader.h.
References clang::ASTReader::GetTypeSourceInfo().
|
inline |
Is this a module file for a module (rather than a PCH or similar).
Definition at line 2347 of file ASTReader.h.
References clang::serialization::ModuleFile::isModule().
|
inline |
An arbitrary index in this record.
Definition at line 2359 of file ASTReader.h.
|
inline |
Returns the current value in this record, without advancing.
Definition at line 2369 of file ASTReader.h.
|
inline |
Read a floating-point value, advancing Idx.
Definition at line 2578 of file ASTReader.h.
References clang::ASTReader::ReadAPFloat().
|
inline |
Read an integral value, advancing Idx.
Definition at line 2568 of file ASTReader.h.
References clang::ASTReader::ReadAPInt().
|
inline |
Read a signed integral value, advancing Idx.
Definition at line 2573 of file ASTReader.h.
References clang::ASTReader::ReadAPSInt().
|
inline |
Definition at line 2442 of file ASTReader.h.
References clang::ASTReader::ReadASTTemplateArgumentListInfo().
|
inline |
Reads attributes from the current stream position, advancing Idx.
Definition at line 2598 of file ASTReader.h.
References clang::ASTReader::ReadAttributes().
|
inline |
Read a C++ base specifier, advancing Idx.
Definition at line 2544 of file ASTReader.h.
References clang::ASTReader::ReadCXXBaseSpecifier().
|
inline |
Read a CXXCtorInitializer array, advancing Idx.
Definition at line 2549 of file ASTReader.h.
References clang::ASTReader::ReadCXXCtorInitializers().
|
inline |
Definition at line 2553 of file ASTReader.h.
References clang::ASTReader::ReadCXXTemporary().
|
inline |
Reads a declaration from the given position in a record in the given module, advancing Idx.
Definition at line 2470 of file ASTReader.h.
References clang::ASTReader::ReadDecl().
|
inline |
Read a declaration name, advancing Idx.
Definition at line 2494 of file ASTReader.h.
References clang::ASTReader::ReadDeclarationName().
|
inline |
Definition at line 2500 of file ASTReader.h.
References clang::ASTReader::ReadDeclarationNameInfo().
|
inline |
Definition at line 2497 of file ASTReader.h.
References clang::ASTReader::ReadDeclarationNameLoc().
|
inline |
Reads a declaration from the given position in the record, advancing Idx.
Definition at line 2480 of file ASTReader.h.
References clang::ASTReader::ReadDeclAs(), and clang::T.
|
inline |
Reads a declaration ID from the given position in this record.
Definition at line 2464 of file ASTReader.h.
References clang::ASTReader::ReadDeclID().
|
inline |
Definition at line 2398 of file ASTReader.h.
|
inline |
Reads an expression.
Definition at line 2412 of file ASTReader.h.
References clang::ASTReader::ReadExpr().
|
inline |
Returns the current value in this record, and advances to the next value.
Definition at line 2366 of file ASTReader.h.
Referenced by clang::ASTReader::ReadAttributes().
|
inline |
Read the record that describes the lexical contents of a DC.
Definition at line 2386 of file ASTReader.h.
References clang::serialization::ModuleFile::DeclsCursor.
|
inline |
Definition at line 2508 of file ASTReader.h.
References clang::ASTReader::ReadNestedNameSpecifier().
|
inline |
Definition at line 2512 of file ASTReader.h.
References clang::ASTReader::ReadNestedNameSpecifierLoc().
|
inline |
Read a path, advancing Idx.
Definition at line 2588 of file ASTReader.h.
References clang::ASTReader::ReadPath().
|
inline |
Definition at line 2504 of file ASTReader.h.
References clang::ASTReader::ReadQualifierInfo().
unsigned ASTRecordReader::readRecord | ( | llvm::BitstreamCursor & | Cursor, |
unsigned | AbbrevID | ||
) |
Reads a record with id AbbrevID from Cursor, resetting the internal state.
Definition at line 10783 of file ASTReader.cpp.
|
inline |
Read a selector from the Record, advancing Idx.
Definition at line 2489 of file ASTReader.h.
References clang::ASTReader::ReadSelector().
|
inline |
Read a source location, advancing Idx.
Definition at line 2558 of file ASTReader.h.
References clang::ASTReader::ReadSourceLocation().
|
inline |
Read a source range, advancing Idx.
Definition at line 2563 of file ASTReader.h.
References clang::ASTReader::ReadSourceRange().
Referenced by clang::ASTReader::ReadAttributes().
|
inline |
Reads a statement.
Definition at line 2409 of file ASTReader.h.
References clang::ASTReader::ReadStmt().
|
inline |
Read a string, advancing Idx.
Definition at line 2583 of file ASTReader.h.
References clang::ASTReader::ReadString().
|
inline |
Reads a sub-expression operand during statement reading.
Definition at line 2418 of file ASTReader.h.
References clang::ASTReader::ReadSubExpr().
|
inline |
Reads a sub-statement operand during statement reading.
Definition at line 2415 of file ASTReader.h.
References clang::ASTReader::ReadSubStmt().
|
inline |
Read a template argument, advancing Idx.
Definition at line 2522 of file ASTReader.h.
References clang::ASTReader::ReadTemplateArgument().
|
inline |
Read a template argument array, advancing Idx.
Definition at line 2532 of file ASTReader.h.
References clang::ASTReader::ReadTemplateArgumentList().
|
inline |
Reads a TemplateArgumentLoc, advancing Idx.
Definition at line 2437 of file ASTReader.h.
References clang::ASTReader::ReadTemplateArgumentLoc().
Referenced by clang::ASTStmtReader::ReadTemplateKWAndArgsInfo().
|
inline |
Read a template name, advancing Idx.
Definition at line 2517 of file ASTReader.h.
References clang::ASTReader::ReadTemplateName().
|
inline |
Read a template parameter list, advancing Idx.
Definition at line 2527 of file ASTReader.h.
References clang::ASTReader::ReadTemplateParameterList().
|
inline |
Reads a token out of a record, advancing Idx.
Definition at line 2603 of file ASTReader.h.
References clang::ASTReader::ReadToken().
|
inline |
Read a type from the current position in the record.
Definition at line 2457 of file ASTReader.h.
References clang::ASTReader::readType().
|
inline |
Read a UnresolvedSet structure, advancing Idx.
Definition at line 2539 of file ASTReader.h.
References clang::ASTReader::ReadUnresolvedSet().
|
inline |
Read a version tuple, advancing Idx.
Definition at line 2593 of file ASTReader.h.
References clang::ASTReader::ReadVersionTuple().
|
inline |
Read the record that describes the visible contents of a DC.
Definition at line 2392 of file ASTReader.h.
References clang::serialization::ModuleFile::DeclsCursor.
|
inline |
Definition at line 2607 of file ASTReader.h.
References clang::ASTReader::RecordSwitchCaseID().
|
inline |
The length of this record.
Definition at line 2356 of file ASTReader.h.
|
inline |
Skips the specified number of values.
Definition at line 2372 of file ASTReader.h.