|
clang
5.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 2266 of file ASTReader.h.
|
inline |
Construct an ASTRecordReader that uses the default encoding scheme.
Definition at line 2279 of file ASTReader.h.
|
inline |
The last element in this record.
Definition at line 2300 of file ASTReader.h.
|
inline |
Retrieve the AST context that this AST reader supplements.
Definition at line 2290 of file ASTReader.h.
References clang::ASTReader::getContext().
|
inline |
Get the global offset corresponding to a local offset.
Definition at line 2341 of file ASTReader.h.
|
inline |
Retrieve the global submodule ID its local ID number.
Definition at line 2313 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 2389 of file ASTReader.h.
References clang::ASTReader::getGlobalTypeID().
|
inline |
Definition at line 2421 of file ASTReader.h.
References clang::ASTReader::GetIdentifierInfo().
|
inline |
The current position in this record.
Definition at line 2293 of file ASTReader.h.
|
inline |
Reads a declaration with the given local ID in the given module.
Definition at line 2361 of file ASTReader.h.
References clang::ASTReader::GetLocalDecl().
|
inline |
Retrieve the submodule that corresponds to a global submodule ID.
Definition at line 2318 of file ASTReader.h.
References clang::ASTReader::getSubmodule().
|
inline |
Retrieve the switch-case statement with the given ID.
Definition at line 2549 of file ASTReader.h.
References clang::ASTReader::getSwitchCaseWithID().
|
inline |
Reads a TemplateArgumentLocInfo appropriate for the given TemplateArgument kind, advancing Idx.
Definition at line 2368 of file ASTReader.h.
References clang::ASTReader::GetTemplateArgumentLocInfo().
|
inline |
Reads a declarator info from the given record, advancing Idx.
Definition at line 2384 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 2287 of file ASTReader.h.
References clang::serialization::ModuleFile::isModule().
|
inline |
An arbitrary index in this record.
Definition at line 2298 of file ASTReader.h.
|
inline |
Returns the current value in this record, without advancing.
Definition at line 2306 of file ASTReader.h.
|
inline |
Read a floating-point value, advancing Idx.
Definition at line 2515 of file ASTReader.h.
References clang::ASTReader::ReadAPFloat().
|
inline |
Read an integral value, advancing Idx.
Definition at line 2505 of file ASTReader.h.
References clang::ASTReader::ReadAPInt().
|
inline |
Read a signed integral value, advancing Idx.
Definition at line 2510 of file ASTReader.h.
References clang::ASTReader::ReadAPSInt().
|
inline |
Definition at line 2379 of file ASTReader.h.
References clang::ASTReader::ReadASTTemplateArgumentListInfo().
|
inline |
Reads attributes from the current stream position, advancing Idx.
Definition at line 2535 of file ASTReader.h.
References clang::ASTReader::ReadAttributes().
|
inline |
Read a C++ base specifier, advancing Idx.
Definition at line 2481 of file ASTReader.h.
References clang::ASTReader::ReadCXXBaseSpecifier().
|
inline |
Read a CXXCtorInitializer array, advancing Idx.
Definition at line 2486 of file ASTReader.h.
References clang::ASTReader::ReadCXXCtorInitializers().
|
inline |
Definition at line 2490 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 2407 of file ASTReader.h.
References clang::ASTReader::ReadDecl().
|
inline |
Read a declaration name, advancing Idx.
Definition at line 2431 of file ASTReader.h.
References clang::ASTReader::ReadDeclarationName().
|
inline |
Definition at line 2437 of file ASTReader.h.
References clang::ASTReader::ReadDeclarationNameInfo().
|
inline |
Definition at line 2434 of file ASTReader.h.
References clang::ASTReader::ReadDeclarationNameLoc().
|
inline |
Reads a declaration from the given position in the record, advancing Idx.
Definition at line 2417 of file ASTReader.h.
References clang::ASTReader::ReadDeclAs().
|
inline |
Reads a declaration ID from the given position in this record.
Definition at line 2401 of file ASTReader.h.
References clang::ASTReader::ReadDeclID().
|
inline |
Definition at line 2335 of file ASTReader.h.
|
inline |
Reads an expression.
Definition at line 2349 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 2304 of file ASTReader.h.
Referenced by clang::ASTReader::ReadAttributes().
|
inline |
Read the record that describes the lexical contents of a DC.
Definition at line 2323 of file ASTReader.h.
References clang::serialization::ModuleFile::DeclsCursor.
|
inline |
Definition at line 2445 of file ASTReader.h.
References clang::ASTReader::ReadNestedNameSpecifier().
|
inline |
Definition at line 2449 of file ASTReader.h.
References clang::ASTReader::ReadNestedNameSpecifierLoc().
|
inline |
Read a path, advancing Idx.
Definition at line 2525 of file ASTReader.h.
References clang::ASTReader::ReadPath().
|
inline |
Definition at line 2441 of file ASTReader.h.
References clang::ASTReader::ReadQualifierInfo().
Reads a record with id AbbrevID from Cursor, resetting the internal state.
Definition at line 10195 of file ASTReader.cpp.
|
inline |
Read a selector from the Record, advancing Idx.
Definition at line 2426 of file ASTReader.h.
References clang::ASTReader::ReadSelector().
|
inline |
Read a source location, advancing Idx.
Definition at line 2495 of file ASTReader.h.
References clang::ASTReader::ReadSourceLocation().
|
inline |
Read a source range, advancing Idx.
Definition at line 2500 of file ASTReader.h.
References clang::ASTReader::ReadSourceRange().
Referenced by clang::ASTReader::ReadAttributes().
|
inline |
Reads a statement.
Definition at line 2346 of file ASTReader.h.
References clang::ASTReader::ReadStmt().
|
inline |
Read a string, advancing Idx.
Definition at line 2520 of file ASTReader.h.
References clang::ASTReader::ReadString().
|
inline |
Reads a sub-expression operand during statement reading.
Definition at line 2355 of file ASTReader.h.
References clang::ASTReader::ReadSubExpr().
|
inline |
Reads a sub-statement operand during statement reading.
Definition at line 2352 of file ASTReader.h.
References clang::ASTReader::ReadSubStmt().
|
inline |
Read a template argument, advancing Idx.
Definition at line 2459 of file ASTReader.h.
References clang::ASTReader::ReadTemplateArgument().
|
inline |
Read a template argument array, advancing Idx.
Definition at line 2469 of file ASTReader.h.
References clang::ASTReader::ReadTemplateArgumentList().
|
inline |
Reads a TemplateArgumentLoc, advancing Idx.
Definition at line 2374 of file ASTReader.h.
References clang::ASTReader::ReadTemplateArgumentLoc().
|
inline |
Read a template name, advancing Idx.
Definition at line 2454 of file ASTReader.h.
References clang::ASTReader::ReadTemplateName().
|
inline |
Read a template parameter list, advancing Idx.
Definition at line 2464 of file ASTReader.h.
References clang::ASTReader::ReadTemplateParameterList().
|
inline |
Reads a token out of a record, advancing Idx.
Definition at line 2540 of file ASTReader.h.
References clang::ASTReader::ReadToken().
|
inline |
Read a type from the current position in the record.
Definition at line 2394 of file ASTReader.h.
References clang::ASTReader::readType().
|
inline |
Read a UnresolvedSet structure, advancing Idx.
Definition at line 2476 of file ASTReader.h.
References clang::ASTReader::ReadUnresolvedSet().
|
inline |
Read a version tuple, advancing Idx.
Definition at line 2530 of file ASTReader.h.
References clang::ASTReader::ReadVersionTuple().
|
inline |
Read the record that describes the visible contents of a DC.
Definition at line 2329 of file ASTReader.h.
References clang::serialization::ModuleFile::DeclsCursor.
|
inline |
Definition at line 2544 of file ASTReader.h.
References clang::ASTReader::RecordSwitchCaseID().
|
inline |
The length of this record.
Definition at line 2295 of file ASTReader.h.
|
inline |
Skips the specified number of values.
Definition at line 2309 of file ASTReader.h.
1.8.6