clang 22.0.0git
|
An object for streaming information from a record. More...
#include "clang/Serialization/ASTRecordReader.h"
Public Member Functions | |
ASTRecordReader (ASTReader &Reader, ModuleFile &F) | |
Construct an ASTRecordReader that uses the default encoding scheme. | |
Expected< unsigned > | readRecord (llvm::BitstreamCursor &Cursor, unsigned AbbrevID) |
Reads a record with id AbbrevID from Cursor, resetting the internal state. | |
bool | isModule () const |
Is this a module file for a module (rather than a PCH or similar). | |
ASTContext & | getContext () |
Retrieve the AST context that this AST reader supplements. | |
unsigned | getIdx () const |
The current position in this record. | |
size_t | size () const |
The length of this record. | |
const uint64_t & | operator[] (size_t N) |
An arbitrary index in this record. | |
uint64_t | back () |
Returns the last value in this record. | |
uint64_t | readInt () |
Returns the current value in this record, and advances to the next value. | |
ArrayRef< uint64_t > | readIntArray (unsigned Len) |
uint64_t | peekInt () |
Returns the current value in this record, without advancing. | |
void | skipInts (unsigned N) |
Skips the specified number of values. | |
serialization::SubmoduleID | getGlobalSubmoduleID (unsigned LocalID) |
Retrieve the global submodule ID its local ID number. | |
Module * | getSubmodule (serialization::SubmoduleID GlobalID) |
Retrieve the submodule that corresponds to a global submodule ID. | |
bool | readLexicalDeclContextStorage (uint64_t Offset, DeclContext *DC) |
Read the record that describes the lexical contents of a DC. | |
ExplicitSpecifier | readExplicitSpec () |
uint64_t | getGlobalBitOffset (uint64_t LocalOffset) |
Read information about an exception specification (inherited). | |
Stmt * | readStmt () |
Reads a statement. | |
Stmt * | readStmtRef () |
Expr * | readExpr () |
Reads an expression. | |
Stmt * | readSubStmt () |
Reads a sub-statement operand during statement reading. | |
Expr * | readSubExpr () |
Reads a sub-expression operand during statement reading. | |
template<typename T> | |
T * | GetLocalDeclAs (LocalDeclID LocalID) |
Reads a declaration with the given local ID in the given module. | |
TemplateArgumentLocInfo | readTemplateArgumentLocInfo (TemplateArgument::ArgKind Kind) |
Reads a TemplateArgumentLocInfo appropriate for the given TemplateArgument kind, advancing Idx. | |
TemplateArgumentLoc | readTemplateArgumentLoc () |
Reads a TemplateArgumentLoc, advancing Idx. | |
void | readTemplateArgumentListInfo (TemplateArgumentListInfo &Result) |
const ASTTemplateArgumentListInfo * | readASTTemplateArgumentListInfo () |
ConceptReference * | readConceptReference () |
TypeSourceInfo * | readTypeSourceInfo () |
Reads a declarator info from the given record, advancing Idx. | |
void | readTypeLoc (TypeLoc TL) |
Reads the location information for a type. | |
serialization::TypeID | getGlobalTypeID (serialization::TypeID LocalID) const |
Map a local type ID within a given AST file to a global type ID. | |
Qualifiers | readQualifiers () |
QualType | readType () |
Read a type from the current position in the record. | |
QualType | readQualType () |
GlobalDeclID | readDeclID () |
Reads a declaration ID from the given position in this record. | |
Decl * | readDecl () |
Reads a declaration from the given position in a record in the given module, advancing Idx. | |
Decl * | readDeclRef () |
template<typename T> | |
T * | readDeclAs () |
Reads a declaration from the given position in the record, advancing Idx. | |
IdentifierInfo * | readIdentifier () |
Selector | readSelector () |
Read a selector from the Record, advancing Idx. | |
TypeCoupledDeclRefInfo | readTypeCoupledDeclRefInfo () |
SpirvOperand | readHLSLSpirvOperand () |
DeclarationNameLoc | readDeclarationNameLoc (DeclarationName Name) |
Read a declaration name, advancing Idx. | |
DeclarationNameInfo | readDeclarationNameInfo () |
void | readQualifierInfo (QualifierInfo &Info) |
NestedNameSpecifierLoc | readNestedNameSpecifierLoc () |
Return a nested name specifier, advancing Idx. | |
TemplateArgument | readTemplateArgument (bool Canonicalize) |
TemplateParameterList * | readTemplateParameterList () |
Read a template parameter list, advancing Idx. | |
void | readTemplateArgumentList (SmallVectorImpl< TemplateArgument > &TemplArgs, bool Canonicalize=false) |
Read a template argument array, advancing Idx. | |
void | readUnresolvedSet (LazyASTUnresolvedSet &Set) |
Read a UnresolvedSet structure, advancing Idx. | |
CXXBaseSpecifier | readCXXBaseSpecifier () |
Read a C++ base specifier, advancing Idx. | |
CXXCtorInitializer ** | readCXXCtorInitializers () |
Read a CXXCtorInitializer array, advancing Idx. | |
CXXTemporary * | readCXXTemporary () |
OMPTraitInfo * | readOMPTraitInfo () |
Read an OMPTraitInfo object, advancing Idx. | |
OMPClause * | readOMPClause () |
Read an OpenMP clause, advancing Idx. | |
void | readOMPChildren (OMPChildren *Data) |
Read an OpenMP children, advancing Idx. | |
llvm::SmallVector< Expr * > | readOpenACCVarList () |
Read a list of Exprs used for a var-list. | |
llvm::SmallVector< Expr * > | readOpenACCIntExprList () |
Read a list of Exprs used for a int-expr-list. | |
OpenACCClause * | readOpenACCClause () |
Read an OpenACC clause, advancing Idx. | |
void | readOpenACCClauseList (MutableArrayRef< const OpenACCClause * > Clauses) |
Read a list of OpenACC clauses into the passed SmallVector, during statement reading. | |
void | readOpenACCRoutineDeclAttr (OpenACCRoutineDeclAttr *A) |
SourceLocation | readSourceLocation () |
Read a source location, advancing Idx. | |
SourceRange | readSourceRange () |
Read a source range, advancing Idx. | |
llvm::APFloat | readAPFloat (const llvm::fltSemantics &Sem) |
Read an arbitrary constant value, advancing Idx. | |
bool | readBool () |
Read a boolean value, advancing Idx. | |
uint32_t | readUInt32 () |
Read a 32-bit unsigned value; required to satisfy BasicReader. | |
uint64_t | readUInt64 () |
Read a 64-bit unsigned value; required to satisfy BasicReader. | |
UnsignedOrNone | readUnsignedOrNone () |
std::string | readString () |
Read a string, advancing Idx. | |
std::string | readPath () |
Read a path, advancing Idx. | |
VersionTuple | readVersionTuple () |
Read a version tuple, advancing Idx. | |
Attr * | readAttr () |
Reads one attribute from the current stream position, advancing Idx. | |
void | readAttributes (AttrVec &Attrs) |
Reads attributes from the current stream position, advancing Idx. | |
BTFTypeTagAttr * | readBTFTypeTagAttr () |
Read an BTFTypeTagAttr object. | |
Token | readToken () |
Reads a token out of a record, advancing Idx. | |
void | recordSwitchCaseID (SwitchCase *SC, unsigned ID) |
SwitchCase * | getSwitchCaseWithID (unsigned ID) |
Retrieve the switch-case statement with the given ID. | |
Public Member Functions inherited from clang::serialization::DataStreamBasicReader< ASTRecordReader > | |
ASTRecordReader & | find (const char *propertyName) |
Implement property-find by ignoring it. | |
T | readEnum () |
ASTRecordReader & | readObject () |
ArrayRef< T > | readArray (llvm::SmallVectorImpl< T > &buffer) |
std::optional< T > | readOptional (Args &&...args) |
llvm::APSInt | readAPSInt () |
llvm::APInt | readAPInt () |
llvm::FixedPointSemantics | readFixedPointSemantics () |
APValue::LValuePathSerializationHelper | readLValuePathSerializationHelper (SmallVectorImpl< APValue::LValuePathEntry > &path) |
Qualifiers | readQualifiers () |
FunctionProtoType::ExceptionSpecInfo | readExceptionSpecInfo (llvm::SmallVectorImpl< QualType > &buffer) |
FunctionProtoType::ExtParameterInfo | readExtParameterInfo () |
FunctionEffect | readFunctionEffect () |
EffectConditionExpr | readEffectConditionExpr () |
NestedNameSpecifier | readNestedNameSpecifier () |
Additional Inherited Members | |
Protected Member Functions inherited from clang::serialization::DataStreamBasicReader< ASTRecordReader > | |
DataStreamBasicReader (ASTContext &ctx) |
An object for streaming information from a record.
Definition at line 32 of file ASTRecordReader.h.
|
inline |
Construct an ASTRecordReader that uses the default encoding scheme.
Definition at line 46 of file ASTRecordReader.h.
References clang::serialization::DataStreamBasicReader< ASTRecordReader >::DataStreamBasicReader(), and getContext().
|
inline |
Returns the last value in this record.
Definition at line 70 of file ASTRecordReader.h.
|
inline |
Retrieve the AST context that this AST reader supplements.
Definition at line 58 of file ASTRecordReader.h.
Referenced by ASTRecordReader(), readASTTemplateArgumentListInfo(), readAttr(), readConceptReference(), readCXXCtorInitializers(), readNestedNameSpecifierLoc(), readOMPTraitInfo(), readOpenACCClause(), readQualifierInfo(), readTemplateArgument(), readTemplateParameterList(), readTypeSourceInfo(), and readUnresolvedSet().
|
inline |
Read information about an exception specification (inherited).
Get the global offset corresponding to a local offset.
Definition at line 118 of file ASTRecordReader.h.
|
inline |
Retrieve the global submodule ID its local ID number.
Definition at line 90 of file ASTRecordReader.h.
|
inline |
Map a local type ID within a given AST file to a global type ID.
Definition at line 165 of file ASTRecordReader.h.
|
inline |
The current position in this record.
Definition at line 61 of file ASTRecordReader.h.
|
inline |
Reads a declaration with the given local ID in the given module.
Definition at line 138 of file ASTRecordReader.h.
References clang::T.
|
inline |
Retrieve the submodule that corresponds to a global submodule ID.
Definition at line 95 of file ASTRecordReader.h.
|
inline |
Retrieve the switch-case statement with the given ID.
Definition at line 363 of file ASTRecordReader.h.
|
inline |
Is this a module file for a module (rather than a PCH or similar).
Definition at line 55 of file ASTRecordReader.h.
|
inline |
An arbitrary index in this record.
Definition at line 67 of file ASTRecordReader.h.
|
inline |
Returns the current value in this record, without advancing.
Definition at line 83 of file ASTRecordReader.h.
llvm::APFloat ASTRecordReader::readAPFloat | ( | const llvm::fltSemantics & | Sem | ) |
Read an arbitrary constant value, advancing Idx.
Read a floating-point value.
Read an integral value, advancing Idx. Read a signed integral value, advancing Idx. Read a floating-point value, advancing Idx.
Definition at line 10164 of file ASTReader.cpp.
References clang::serialization::DataStreamBasicReader< ASTRecordReader >::readAPInt().
const ASTTemplateArgumentListInfo * ASTRecordReader::readASTTemplateArgumentListInfo | ( | ) |
Definition at line 8014 of file ASTReader.cpp.
References clang::ASTTemplateArgumentListInfo::Create(), getContext(), readTemplateArgumentListInfo(), and clang::Result.
Referenced by readConceptReference().
Attr * ASTRecordReader::readAttr | ( | ) |
Reads one attribute from the current stream position, advancing Idx.
Definition at line 3162 of file ASTReaderDecl.cpp.
References clang::AttributeCommonInfo::AS_Keyword, getContext(), New, and V.
Referenced by readAttributes(), and readBTFTypeTagAttr().
void ASTRecordReader::readAttributes | ( | AttrVec & | Attrs | ) |
Reads attributes from the current stream position, advancing Idx.
Reads attributes from the current stream position.
Definition at line 3198 of file ASTReaderDecl.cpp.
References readAttr(), and readInt().
|
inline |
Read a boolean value, advancing Idx.
Definition at line 311 of file ASTRecordReader.h.
References readInt().
Referenced by readConceptReference(), readCXXBaseSpecifier(), readCXXCtorInitializers(), readOMPTraitInfo(), readOpenACCClause(), readTemplateArgumentLoc(), readTemplateParameterList(), and readTypeCoupledDeclRefInfo().
|
inline |
Read an BTFTypeTagAttr object.
Definition at line 349 of file ASTRecordReader.h.
References clang::cast(), and readAttr().
ConceptReference * ASTRecordReader::readConceptReference | ( | ) |
Definition at line 7425 of file ASTReader.cpp.
References clang::ConceptReference::Create(), getContext(), readASTTemplateArgumentListInfo(), readBool(), readDeclarationNameInfo(), readDeclAs(), readNestedNameSpecifierLoc(), and readSourceLocation().
CXXBaseSpecifier ASTRecordReader::readCXXBaseSpecifier | ( | ) |
Read a C++ base specifier, advancing Idx.
Definition at line 10020 of file ASTReader.cpp.
References readBool(), readInt(), readSourceLocation(), readSourceRange(), readTypeSourceInfo(), and clang::Result.
CXXCtorInitializer ** ASTRecordReader::readCXXCtorInitializers | ( | ) |
Read a CXXCtorInitializer array, advancing Idx.
Definition at line 10035 of file ASTReader.cpp.
References clang::serialization::CTOR_INITIALIZER_BASE, clang::serialization::CTOR_INITIALIZER_DELEGATING, clang::serialization::CTOR_INITIALIZER_INDIRECT_MEMBER, clang::serialization::CTOR_INITIALIZER_MEMBER, getContext(), clang::Init, clang::Member, readBool(), readDeclAs(), readExpr(), readInt(), readSourceLocation(), readTypeSourceInfo(), and clang::CXXCtorInitializer::setSourceOrder().
|
inline |
Definition at line 260 of file ASTRecordReader.h.
|
inline |
Reads a declaration from the given position in a record in the given module, advancing Idx.
Definition at line 188 of file ASTRecordReader.h.
Referenced by readDeclRef().
DeclarationNameInfo ASTRecordReader::readDeclarationNameInfo | ( | ) |
Definition at line 9946 of file ASTReader.cpp.
References clang::DeclarationNameInfo::getName(), readDeclarationNameLoc(), readSourceLocation(), clang::DeclarationNameInfo::setInfo(), clang::DeclarationNameInfo::setLoc(), and clang::DeclarationNameInfo::setName().
Referenced by readConceptReference().
DeclarationNameLoc ASTRecordReader::readDeclarationNameLoc | ( | DeclarationName | Name | ) |
Read a declaration name, advancing Idx.
Definition at line 9921 of file ASTReader.cpp.
References clang::DeclarationName::CXXConstructorName, clang::DeclarationName::CXXConversionFunctionName, clang::DeclarationName::CXXDeductionGuideName, clang::DeclarationName::CXXDestructorName, clang::DeclarationName::CXXLiteralOperatorName, clang::DeclarationName::CXXOperatorName, clang::DeclarationName::CXXUsingDirective, clang::DeclarationName::getNameKind(), clang::DeclarationName::Identifier, clang::DeclarationNameLoc::makeCXXLiteralOperatorNameLoc(), clang::DeclarationNameLoc::makeCXXOperatorNameLoc(), clang::DeclarationNameLoc::makeNamedTypeLoc(), clang::DeclarationName::ObjCMultiArgSelector, clang::DeclarationName::ObjCOneArgSelector, clang::DeclarationName::ObjCZeroArgSelector, readSourceLocation(), readSourceRange(), and readTypeSourceInfo().
Referenced by readDeclarationNameInfo().
Reads a declaration from the given position in the record, advancing Idx.
Definition at line 201 of file ASTRecordReader.h.
References clang::T.
Referenced by readConceptReference(), readCXXCtorInitializers(), readNestedNameSpecifierLoc(), readOpenACCClause(), readTemplateParameterList(), and readTypeCoupledDeclRefInfo().
|
inline |
Reads a declaration ID from the given position in this record.
Definition at line 184 of file ASTRecordReader.h.
Referenced by readUnresolvedSet().
|
inline |
Definition at line 191 of file ASTRecordReader.h.
References readDecl().
|
inline |
Definition at line 105 of file ASTRecordReader.h.
References readExpr(), and readInt().
|
inline |
Reads an expression.
Definition at line 127 of file ASTRecordReader.h.
Referenced by readCXXCtorInitializers(), readExplicitSpec(), readOpenACCClause(), readOpenACCVarList(), readTemplateArgumentLocInfo(), and readTemplateParameterList().
SpirvOperand ASTRecordReader::readHLSLSpirvOperand | ( | ) |
Definition at line 9958 of file ASTReader.cpp.
References clang::serialization::DataStreamBasicReader< ASTRecordReader >::readAPInt(), readInt(), and readQualType().
|
inline |
Definition at line 205 of file ASTRecordReader.h.
Referenced by readOpenACCClause().
|
inline |
Returns the current value in this record, and advances to the next value.
Definition at line 74 of file ASTRecordReader.h.
Referenced by readAttributes(), readBool(), readCXXBaseSpecifier(), readCXXCtorInitializers(), readExplicitSpec(), readHLSLSpirvOperand(), readNestedNameSpecifierLoc(), readOpenACCClause(), readOpenACCIntExprList(), readOpenACCRoutineDeclAttr(), readOpenACCVarList(), readQualifierInfo(), readQualifiers(), readTemplateArgumentList(), readTemplateArgumentListInfo(), readTemplateParameterList(), readUInt32(), readUInt64(), readUnresolvedSet(), and readUnsignedOrNone().
Definition at line 76 of file ASTRecordReader.h.
|
inline |
Read the record that describes the lexical contents of a DC.
Definition at line 100 of file ASTRecordReader.h.
NestedNameSpecifierLoc ASTRecordReader::readNestedNameSpecifierLoc | ( | ) |
Return a nested name specifier, advancing Idx.
Definition at line 10100 of file ASTReader.cpp.
References getContext(), clang::NestedNameSpecifierLocBuilder::getWithLocInContext(), clang::NestedNameSpecifier::Global, clang::NestedNameSpecifier::MicrosoftSuper, clang::NestedNameSpecifier::Namespace, clang::NestedNameSpecifier::Null, readDeclAs(), readInt(), readSourceLocation(), readSourceRange(), readTypeSourceInfo(), clang::T, and clang::NestedNameSpecifier::Type.
Referenced by readConceptReference(), readQualifierInfo(), and readTemplateArgumentLocInfo().
void ASTRecordReader::readOMPChildren | ( | OMPChildren * | Data | ) |
Read an OpenMP children, advancing Idx.
Definition at line 12744 of file ASTReader.cpp.
References clang::Data, readOMPClause(), readStmt(), and skipInts().
OMPClause * ASTRecordReader::readOMPClause | ( | ) |
Read an OpenMP clause, advancing Idx.
Definition at line 11180 of file ASTReader.cpp.
References clang::OMPClauseReader::readClause().
Referenced by readOMPChildren().
OMPTraitInfo * ASTRecordReader::readOMPTraitInfo | ( | ) |
Read an OMPTraitInfo object, advancing Idx.
Definition at line 12725 of file ASTReader.cpp.
References getContext(), clang::ASTContext::getNewOMPTraitInfo(), clang::Property, readBool(), clang::serialization::DataStreamBasicReader< ASTRecordReader >::readEnum(), readUInt32(), clang::Set, and clang::OMPTraitInfo::Sets.
OpenACCClause * ASTRecordReader::readOpenACCClause | ( | ) |
Read an OpenACC clause, advancing Idx.
Definition at line 12777 of file ASTReader.cpp.
References clang::Async, clang::Attach, clang::Auto, clang::Bind, clang::cast(), clang::Collapse, clang::Copy, clang::CopyIn, clang::CopyOut, clang::OpenACCAsyncClause::Create(), clang::OpenACCAttachClause::Create(), clang::OpenACCAutoClause::Create(), clang::OpenACCBindClause::Create(), clang::Create, clang::OpenACCCollapseClause::Create(), clang::OpenACCCopyClause::Create(), clang::OpenACCCopyInClause::Create(), clang::OpenACCCopyOutClause::Create(), clang::OpenACCCreateClause::Create(), clang::OpenACCDefaultAsyncClause::Create(), clang::OpenACCDefaultClause::Create(), clang::OpenACCDeleteClause::Create(), clang::OpenACCDetachClause::Create(), clang::OpenACCDeviceClause::Create(), clang::OpenACCDeviceNumClause::Create(), clang::OpenACCDevicePtrClause::Create(), clang::OpenACCDeviceResidentClause::Create(), clang::OpenACCDeviceTypeClause::Create(), clang::OpenACCFinalizeClause::Create(), clang::OpenACCFirstPrivateClause::Create(), clang::OpenACCGangClause::Create(), clang::OpenACCHostClause::Create(), clang::OpenACCIfClause::Create(), clang::OpenACCIfPresentClause::Create(), clang::OpenACCIndependentClause::Create(), clang::OpenACCLinkClause::Create(), clang::OpenACCNoCreateClause::Create(), clang::OpenACCNoHostClause::Create(), clang::OpenACCNumGangsClause::Create(), clang::OpenACCNumWorkersClause::Create(), clang::OpenACCPresentClause::Create(), clang::OpenACCPrivateClause::Create(), clang::OpenACCReductionClause::Create(), clang::OpenACCSelfClause::Create(), clang::OpenACCSeqClause::Create(), clang::OpenACCTileClause::Create(), clang::OpenACCUseDeviceClause::Create(), clang::OpenACCVectorClause::Create(), clang::OpenACCVectorLengthClause::Create(), clang::OpenACCWaitClause::Create(), clang::OpenACCWorkerClause::Create(), clang::Default, clang::DefaultAsync, clang::Delete, clang::Detach, clang::Device, clang::DeviceNum, clang::DevicePtr, clang::DeviceResident, clang::DeviceType, clang::DType, clang::Finalize, clang::FirstPrivate, clang::Gang, getContext(), clang::Host, clang::If, clang::IfPresent, clang::Independent, clang::Invalid, clang::Link, clang::NoCreate, clang::NoHost, clang::NumGangs, clang::NumWorkers, clang::PCopy, clang::PCopyIn, clang::PCopyOut, clang::PCreate, clang::Present, clang::PresentOrCopy, clang::PresentOrCopyIn, clang::PresentOrCopyOut, clang::PresentOrCreate, clang::Private, readBool(), readDeclAs(), clang::serialization::DataStreamBasicReader< ASTRecordReader >::readEnum(), readExpr(), readIdentifier(), readInt(), readOpenACCIntExprList(), readOpenACCVarList(), readSourceLocation(), readSubExpr(), clang::Reduction, clang::Self, clang::Seq, clang::Shortloop, clang::Tile, clang::UseDevice, clang::Vector, clang::VectorLength, clang::Wait, and clang::Worker.
Referenced by readOpenACCClauseList().
void ASTRecordReader::readOpenACCClauseList | ( | MutableArrayRef< const OpenACCClause * > | Clauses | ) |
Read a list of OpenACC clauses into the passed SmallVector, during statement reading.
Definition at line 13091 of file ASTReader.cpp.
References readOpenACCClause().
Referenced by readOpenACCRoutineDeclAttr().
SmallVector< Expr * > ASTRecordReader::readOpenACCIntExprList | ( | ) |
Read a list of Exprs used for a int-expr-list.
Definition at line 12769 of file ASTReader.cpp.
References readInt(), and readSubExpr().
Referenced by readOpenACCClause().
void ASTRecordReader::readOpenACCRoutineDeclAttr | ( | OpenACCRoutineDeclAttr * | A | ) |
Definition at line 13097 of file ASTReader.cpp.
References readInt(), and readOpenACCClauseList().
SmallVector< Expr * > ASTRecordReader::readOpenACCVarList | ( | ) |
Read a list of Exprs used for a var-list.
Definition at line 12761 of file ASTReader.cpp.
References readExpr(), and readInt().
Referenced by readOpenACCClause().
|
inline |
Read a path, advancing Idx.
Definition at line 333 of file ASTRecordReader.h.
void ASTRecordReader::readQualifierInfo | ( | QualifierInfo & | Info | ) |
Definition at line 9967 of file ASTReader.cpp.
References getContext(), clang::QualifierInfo::NumTemplParamLists, clang::QualifierInfo::QualifierLoc, readInt(), readNestedNameSpecifierLoc(), readTemplateParameterList(), and clang::QualifierInfo::TemplParamLists.
|
inline |
Definition at line 169 of file ASTRecordReader.h.
References clang::Qualifiers::fromOpaqueValue(), and readInt().
|
inline |
Definition at line 177 of file ASTRecordReader.h.
References readType().
Referenced by readHLSLSpirvOperand().
Expected< unsigned > ASTRecordReader::readRecord | ( | llvm::BitstreamCursor & | Cursor, |
unsigned | AbbrevID ) |
Reads a record with id AbbrevID from Cursor, resetting the internal state.
Definition at line 11149 of file ASTReader.cpp.
|
inline |
Read a selector from the Record, advancing Idx.
Definition at line 210 of file ASTRecordReader.h.
|
inline |
Read a source location, advancing Idx.
Definition at line 289 of file ASTRecordReader.h.
Referenced by readConceptReference(), readCXXBaseSpecifier(), readCXXCtorInitializers(), readDeclarationNameInfo(), readDeclarationNameLoc(), readNestedNameSpecifierLoc(), readOpenACCClause(), readTemplateArgumentListInfo(), readTemplateArgumentLocInfo(), and readTemplateParameterList().
|
inline |
Read a source range, advancing Idx.
Definition at line 294 of file ASTRecordReader.h.
Referenced by readCXXBaseSpecifier(), readDeclarationNameLoc(), and readNestedNameSpecifierLoc().
|
inline |
Reads a statement.
Definition at line 123 of file ASTRecordReader.h.
Referenced by readOMPChildren(), and readStmtRef().
|
inline |
Definition at line 124 of file ASTRecordReader.h.
References readStmt().
|
inline |
Read a string, advancing Idx.
Definition at line 328 of file ASTRecordReader.h.
|
inline |
Reads a sub-expression operand during statement reading.
Definition at line 133 of file ASTRecordReader.h.
Referenced by readOpenACCClause(), and readOpenACCIntExprList().
|
inline |
Reads a sub-statement operand during statement reading.
Definition at line 130 of file ASTRecordReader.h.
|
inline |
Definition at line 236 of file ASTRecordReader.h.
References clang::ASTContext::getCanonicalTemplateArgument(), getContext(), and readTemplateArgument().
Referenced by readTemplateArgument(), readTemplateArgumentList(), and readTemplateArgumentLoc().
void ASTRecordReader::readTemplateArgumentList | ( | SmallVectorImpl< TemplateArgument > & | TemplArgs, |
bool | Canonicalize = false ) |
Read a template argument array, advancing Idx.
Definition at line 9999 of file ASTReader.cpp.
References readInt(), and readTemplateArgument().
void ASTRecordReader::readTemplateArgumentListInfo | ( | TemplateArgumentListInfo & | Result | ) |
Definition at line 8004 of file ASTReader.cpp.
References readInt(), readSourceLocation(), readTemplateArgumentLoc(), and clang::Result.
Referenced by readASTTemplateArgumentListInfo().
TemplateArgumentLoc ASTRecordReader::readTemplateArgumentLoc | ( | ) |
Reads a TemplateArgumentLoc, advancing Idx.
Definition at line 7994 of file ASTReader.cpp.
References clang::TemplateArgument::Expression, clang::TemplateArgument::getAsExpr(), clang::TemplateArgument::getKind(), readBool(), readTemplateArgument(), and readTemplateArgumentLocInfo().
Referenced by readTemplateArgumentListInfo().
TemplateArgumentLocInfo ASTRecordReader::readTemplateArgumentLocInfo | ( | TemplateArgument::ArgKind | Kind | ) |
Reads a TemplateArgumentLocInfo appropriate for the given TemplateArgument kind, advancing Idx.
Definition at line 7965 of file ASTReader.cpp.
References clang::TemplateArgument::Declaration, clang::TemplateArgument::Expression, clang::TemplateArgument::Integral, clang::TemplateArgument::Null, clang::TemplateArgument::NullPtr, clang::TemplateArgument::Pack, readExpr(), readNestedNameSpecifierLoc(), readSourceLocation(), readTypeSourceInfo(), clang::TemplateArgument::StructuralValue, clang::TemplateArgument::Template, clang::TemplateArgument::TemplateExpansion, and clang::TemplateArgument::Type.
Referenced by readTemplateArgumentLoc().
TemplateParameterList * ASTRecordReader::readTemplateParameterList | ( | ) |
Read a template parameter list, advancing Idx.
Definition at line 9980 of file ASTReader.cpp.
References clang::TemplateParameterList::Create(), getContext(), readBool(), readDeclAs(), readExpr(), readInt(), and readSourceLocation().
Referenced by readQualifierInfo().
|
inline |
Reads a token out of a record, advancing Idx.
Definition at line 354 of file ASTRecordReader.h.
|
inline |
Read a type from the current position in the record.
Definition at line 174 of file ASTRecordReader.h.
Referenced by readQualType(), and readTypeSourceInfo().
TypeCoupledDeclRefInfo ASTRecordReader::readTypeCoupledDeclRefInfo | ( | ) |
Definition at line 9954 of file ASTReader.cpp.
References readBool(), and readDeclAs().
void ASTRecordReader::readTypeLoc | ( | TypeLoc | TL | ) |
Reads the location information for a type.
Definition at line 7592 of file ASTReader.cpp.
References clang::TypeLoc::getNextTypeLoc(), clang::TypeLoc::isNull(), and clang::TypeLocVisitor< ImplClass, RetTy >::Visit().
Referenced by readTypeSourceInfo().
TypeSourceInfo * ASTRecordReader::readTypeSourceInfo | ( | ) |
Reads a declarator info from the given record, advancing Idx.
Definition at line 7598 of file ASTReader.cpp.
References getContext(), clang::TypeSourceInfo::getTypeLoc(), clang::QualType::isNull(), readType(), and readTypeLoc().
Referenced by readCXXBaseSpecifier(), readCXXCtorInitializers(), readDeclarationNameLoc(), readNestedNameSpecifierLoc(), and readTemplateArgumentLocInfo().
|
inline |
Read a 32-bit unsigned value; required to satisfy BasicReader.
Definition at line 314 of file ASTRecordReader.h.
References readInt().
Referenced by readOMPTraitInfo().
|
inline |
Read a 64-bit unsigned value; required to satisfy BasicReader.
Definition at line 319 of file ASTRecordReader.h.
References readInt().
void ASTRecordReader::readUnresolvedSet | ( | LazyASTUnresolvedSet & | Set | ) |
Read a UnresolvedSet structure, advancing Idx.
Read a UnresolvedSet structure.
Definition at line 10009 of file ASTReader.cpp.
References getContext(), readDeclID(), readInt(), and clang::Set.
|
inline |
Definition at line 323 of file ASTRecordReader.h.
References clang::UnsignedOrNone::fromInternalRepresentation(), and readInt().
|
inline |
Read a version tuple, advancing Idx.
Definition at line 338 of file ASTRecordReader.h.
References clang::ASTReader::ReadVersionTuple().
|
inline |
Definition at line 358 of file ASTRecordReader.h.
|
inline |
The length of this record.
Definition at line 64 of file ASTRecordReader.h.
|
inline |
Skips the specified number of values.
Definition at line 86 of file ASTRecordReader.h.
Referenced by readOMPChildren().