clang 18.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. | |
bool | readVisibleDeclContextStorage (uint64_t Offset, serialization::DeclID ID) |
Read the record that describes the visible 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 (uint32_t 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, LocSeq *Seq=nullptr) |
Reads the location information for a type. | |
serialization::TypeID | getGlobalTypeID (unsigned 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 () |
serialization::DeclID | 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. | |
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. | |
SourceLocation | readSourceLocation (LocSeq *Seq=nullptr) |
Read a source location, advancing Idx. | |
SourceRange | readSourceRange (LocSeq *Seq=nullptr) |
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. | |
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. | |
![]() | |
ASTRecordReader & | find (const char *propertyName) |
Implement property-find by ignoring it. | |
T | readEnum () |
ASTRecordReader & | readObject () |
llvm::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 () |
NestedNameSpecifier * | readNestedNameSpecifier () |
Additional Inherited Members | |
![]() | |
DataStreamBasicReader (ASTContext &ctx) | |
An object for streaming information from a record.
Definition at line 31 of file ASTRecordReader.h.
|
inline |
Construct an ASTRecordReader that uses the default encoding scheme.
Definition at line 46 of file ASTRecordReader.h.
|
inline |
Returns the last value in this record.
Definition at line 70 of file ASTRecordReader.h.
Referenced by clang::ASTDeclReader::VisitImportDecl().
|
inline |
Retrieve the AST context that this AST reader supplements.
Definition at line 58 of file ASTRecordReader.h.
References clang::ASTReader::getContext().
Referenced by readAttr(), readCXXCtorInitializers(), readNestedNameSpecifierLoc(), readOMPTraitInfo(), readQualifierInfo(), readTemplateArgument(), readTemplateParameterList(), and readUnresolvedSet().
|
inline |
Read information about an exception specification (inherited).
Get the global offset corresponding to a local offset.
Definition at line 125 of file ASTRecordReader.h.
|
inline |
Retrieve the global submodule ID its local ID number.
Definition at line 90 of file ASTRecordReader.h.
References clang::ASTReader::getGlobalSubmoduleID().
|
inline |
Map a local type ID within a given AST file to a global type ID.
Definition at line 173 of file ASTRecordReader.h.
References clang::ASTReader::getGlobalTypeID().
Referenced by clang::ASTDeclReader::VisitObjCInterfaceDecl(), clang::ASTDeclReader::VisitTypeDecl(), and clang::ASTDeclReader::VisitValueDecl().
|
inline |
The current position in this record.
Definition at line 61 of file ASTRecordReader.h.
Referenced by clang::ASTStmtReader::VisitStmt().
|
inline |
Reads a declaration with the given local ID in the given module.
Definition at line 146 of file ASTRecordReader.h.
References clang::ASTReader::GetLocalDecl().
|
inline |
Retrieve the submodule that corresponds to a global submodule ID.
Definition at line 95 of file ASTRecordReader.h.
References clang::ASTReader::getSubmodule().
|
inline |
Retrieve the switch-case statement with the given ID.
Definition at line 350 of file ASTRecordReader.h.
References clang::ASTReader::getSwitchCaseWithID(), and ID.
|
inline |
Is this a module file for a module (rather than a PCH or similar).
Definition at line 55 of file ASTRecordReader.h.
References clang::serialization::ModuleFile::isModule().
Referenced by clang::ASTDeclReader::VisitNamespaceDecl().
|
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 9294 of file ASTReader.cpp.
References clang::serialization::DataStreamBasicReader< ASTRecordReader >::readAPInt().
const ASTTemplateArgumentListInfo * ASTRecordReader::readASTTemplateArgumentListInfo | ( | ) |
Definition at line 7469 of file ASTReader.cpp.
References clang::ASTTemplateArgumentListInfo::Create(), and clang::Result.
Referenced by clang::ASTDeclReader::VisitClassTemplatePartialSpecializationDecl(), and clang::ASTDeclReader::VisitVarTemplatePartialSpecializationDecl().
Attr * ASTRecordReader::readAttr | ( | ) |
Reads one attribute from the current stream position, advancing Idx.
Definition at line 3113 of file ASTReaderDecl.cpp.
References clang::AttributeCommonInfo::AS_Keyword, getContext(), 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 3149 of file ASTReaderDecl.cpp.
References readAttr(), and readInt().
Referenced by clang::ASTDeclReader::VisitDecl().
|
inline |
Read a boolean value, advancing Idx.
Definition at line 302 of file ASTRecordReader.h.
References readInt().
Referenced by readCXXBaseSpecifier(), readCXXCtorInitializers(), readNestedNameSpecifierLoc(), readOMPTraitInfo(), readTemplateParameterList(), clang::ASTDeclReader::VisitFunctionDecl(), clang::ASTDeclReader::VisitHLSLBufferDecl(), and clang::ASTDeclReader::VisitTemplateTypeParmDecl().
|
inline |
Read an BTFTypeTagAttr object.
Definition at line 336 of file ASTRecordReader.h.
References readAttr().
ConceptReference * ASTRecordReader::readConceptReference | ( | ) |
Definition at line 6935 of file ASTReader.cpp.
References clang::ConceptReference::Create().
Referenced by clang::ASTDeclReader::VisitTemplateTypeParmDecl().
CXXBaseSpecifier ASTRecordReader::readCXXBaseSpecifier | ( | ) |
Read a C++ base specifier, advancing Idx.
Definition at line 9145 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 9160 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(), readExpr(), readInt(), readSourceLocation(), readTypeSourceInfo(), and clang::CXXCtorInitializer::setSourceOrder().
|
inline |
Definition at line 266 of file ASTRecordReader.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 198 of file ASTRecordReader.h.
References clang::ASTReader::ReadDecl().
Referenced by readDeclRef().
DeclarationNameInfo ASTRecordReader::readDeclarationNameInfo | ( | ) |
Definition at line 9084 of file ASTReader.cpp.
References clang::DeclarationNameInfo::getName(), readDeclarationNameLoc(), readSourceLocation(), clang::DeclarationNameInfo::setInfo(), clang::DeclarationNameInfo::setLoc(), and clang::DeclarationNameInfo::setName().
DeclarationNameLoc ASTRecordReader::readDeclarationNameLoc | ( | DeclarationName | Name | ) |
Read a declaration name, advancing Idx.
Definition at line 9059 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::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(), clang::ASTDeclReader::VisitFunctionDecl(), clang::ASTDeclReader::VisitUnresolvedUsingValueDecl(), and clang::ASTDeclReader::VisitUsingDecl().
|
inline |
Reads a declaration from the given position in the record, advancing Idx.
Definition at line 211 of file ASTRecordReader.h.
References clang::ASTReader::ReadDeclAs().
Referenced by clang::ASTDeclReader::VisitFunctionDecl().
|
inline |
Reads a declaration ID from the given position in this record.
Definition at line 192 of file ASTRecordReader.h.
References clang::ASTReader::ReadDeclID().
Referenced by readUnresolvedSet().
|
inline |
Definition at line 201 of file ASTRecordReader.h.
References readDecl().
|
inline |
Definition at line 112 of file ASTRecordReader.h.
References readExpr(), and readInt().
Referenced by clang::ASTDeclReader::VisitCXXConstructorDecl(), clang::ASTDeclReader::VisitCXXConversionDecl(), and clang::ASTDeclReader::VisitCXXDeductionGuideDecl().
|
inline |
Reads an expression.
Definition at line 134 of file ASTRecordReader.h.
References clang::ASTReader::ReadExpr().
Referenced by readCXXCtorInitializers(), readExplicitSpec(), readTemplateParameterList(), clang::ASTDeclReader::VisitBindingDecl(), clang::ASTDeclReader::VisitBlockDecl(), clang::ASTDeclReader::VisitConceptDecl(), clang::ASTDeclReader::VisitCXXDestructorDecl(), clang::ASTDeclReader::VisitDeclaratorDecl(), clang::ASTDeclReader::VisitEnumConstantDecl(), clang::ASTDeclReader::VisitFieldDecl(), clang::ASTDeclReader::VisitFileScopeAsmDecl(), clang::ASTDeclReader::VisitNonTypeTemplateParmDecl(), clang::ASTDeclReader::VisitObjCPropertyImplDecl(), clang::ASTDeclReader::VisitOMPDeclareReductionDecl(), clang::ASTDeclReader::VisitParmVarDecl(), clang::ASTDeclReader::VisitStaticAssertDecl(), clang::ASTDeclReader::VisitTemplateTypeParmDecl(), and clang::ASTDeclReader::VisitVarDeclImpl().
|
inline |
Definition at line 215 of file ASTRecordReader.h.
References clang::ASTReader::readIdentifier().
Referenced by readNestedNameSpecifierLoc(), clang::ASTDeclReader::VisitMSPropertyDecl(), and clang::ASTDeclReader::VisitTagDecl().
|
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(), clang::ASTDeclReader::ReadFunctionDefinition(), readNestedNameSpecifierLoc(), clang::ASTDeclReader::ReadObjCTypeParamList(), readQualifierInfo(), readQualifiers(), readTemplateArgumentList(), readTemplateParameterList(), readUInt32(), readUInt64(), readUnresolvedSet(), clang::ASTDeclReader::ReadVarDeclInit(), clang::ASTDeclReader::Visit(), clang::ASTDeclReader::VisitBlockDecl(), clang::ASTDeclReader::VisitCapturedDecl(), clang::ASTDeclReader::VisitClassTemplatePartialSpecializationDecl(), clang::ASTDeclReader::VisitClassTemplateSpecializationDeclImpl(), clang::ASTDeclReader::VisitConstructorUsingShadowDecl(), clang::ASTDeclReader::VisitCXXDeductionGuideDecl(), clang::ASTDeclReader::VisitCXXMethodDecl(), clang::ASTDeclReader::VisitCXXRecordDeclImpl(), clang::ASTDeclReader::VisitDecl(), clang::ASTDeclReader::VisitDeclaratorDecl(), clang::ASTDeclReader::VisitEnumConstantDecl(), clang::ASTDeclReader::VisitEnumDecl(), clang::ASTDeclReader::VisitFieldDecl(), clang::ASTDeclReader::VisitFriendDecl(), clang::ASTDeclReader::VisitFriendTemplateDecl(), clang::ASTDeclReader::VisitFunctionDecl(), clang::ASTDeclReader::VisitImportDecl(), clang::ASTDeclReader::VisitIndirectFieldDecl(), clang::ASTDeclReader::VisitLifetimeExtendedTemporaryDecl(), clang::ASTDeclReader::VisitLinkageSpecDecl(), clang::ASTDeclReader::VisitMSGuidDecl(), clang::ASTDeclReader::VisitNamedDecl(), clang::ASTDeclReader::VisitNamespaceDecl(), clang::ASTDeclReader::VisitNonTypeTemplateParmDecl(), clang::ASTDeclReader::VisitObjCCategoryDecl(), clang::ASTDeclReader::VisitObjCImplementationDecl(), clang::ASTDeclReader::VisitObjCInterfaceDecl(), clang::ASTDeclReader::VisitObjCIvarDecl(), clang::ASTDeclReader::VisitObjCMethodDecl(), clang::ASTDeclReader::VisitObjCPropertyDecl(), clang::ASTDeclReader::VisitObjCProtocolDecl(), clang::ASTDeclReader::VisitObjCTypeParamDecl(), clang::ASTDeclReader::VisitOMPDeclareReductionDecl(), clang::ASTDeclReader::VisitParmVarDecl(), clang::ASTDeclReader::VisitPragmaCommentDecl(), clang::ASTDeclReader::VisitRecordDecl(), clang::ASTDeclReader::VisitRecordDeclImpl(), clang::ASTDeclReader::VisitRedeclarable(), clang::ASTDeclReader::VisitRedeclarableTemplateDecl(), clang::ASTDeclReader::VisitStaticAssertDecl(), clang::ASTDeclReader::VisitTagDecl(), clang::ASTDeclReader::VisitTemplateTemplateParmDecl(), clang::ASTDeclReader::VisitTemplateTypeParmDecl(), clang::ASTDeclReader::VisitTypeDecl(), clang::ASTDeclReader::VisitTypedefNameDecl(), clang::ASTDeclReader::VisitUsingDecl(), clang::ASTDeclReader::VisitUsingShadowDecl(), clang::ASTDeclReader::VisitValueDecl(), clang::ASTDeclReader::VisitVarDeclImpl(), clang::ASTDeclReader::VisitVarTemplatePartialSpecializationDecl(), and clang::ASTDeclReader::VisitVarTemplateSpecializationDeclImpl().
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.
References clang::serialization::ModuleFile::DeclsCursor.
NestedNameSpecifierLoc ASTRecordReader::readNestedNameSpecifierLoc | ( | ) |
Return a nested name specifier, advancing Idx.
Definition at line 9225 of file ASTReader.cpp.
References clang::TypeLoc::getBeginLoc(), getContext(), clang::TypeSourceInfo::getTypeLoc(), clang::NestedNameSpecifier::Global, clang::NestedNameSpecifier::Identifier, clang::NestedNameSpecifier::Namespace, clang::NestedNameSpecifier::NamespaceAlias, readBool(), readIdentifier(), readInt(), readSourceLocation(), readSourceRange(), readTypeSourceInfo(), clang::NestedNameSpecifier::Super, clang::NestedNameSpecifier::TypeSpec, and clang::NestedNameSpecifier::TypeSpecWithTemplate.
Referenced by readQualifierInfo(), clang::ASTDeclReader::VisitNamespaceAliasDecl(), clang::ASTDeclReader::VisitUnresolvedUsingTypenameDecl(), clang::ASTDeclReader::VisitUnresolvedUsingValueDecl(), clang::ASTDeclReader::VisitUsingDecl(), and clang::ASTDeclReader::VisitUsingDirectiveDecl().
void ASTRecordReader::readOMPChildren | ( | OMPChildren * | Data | ) |
Read an OpenMP children, advancing Idx.
Definition at line 11663 of file ASTReader.cpp.
References clang::Data, readOMPClause(), readStmt(), and skipInts().
Referenced by clang::ASTDeclReader::VisitOMPAllocateDecl(), clang::ASTDeclReader::VisitOMPDeclareMapperDecl(), clang::ASTDeclReader::VisitOMPRequiresDecl(), and clang::ASTDeclReader::VisitOMPThreadPrivateDecl().
OMPClause * ASTRecordReader::readOMPClause | ( | ) |
Read an OpenMP clause, advancing Idx.
Definition at line 10204 of file ASTReader.cpp.
References clang::OMPClauseReader::readClause().
Referenced by readOMPChildren().
OMPTraitInfo * ASTRecordReader::readOMPTraitInfo | ( | ) |
Read an OMPTraitInfo object, advancing Idx.
Definition at line 11644 of file ASTReader.cpp.
References getContext(), clang::ASTContext::getNewOMPTraitInfo(), clang::Property, readBool(), readUInt32(), clang::Set, and clang::OMPTraitInfo::Sets.
|
inline |
Read a path, advancing Idx.
Definition at line 320 of file ASTRecordReader.h.
References clang::ASTReader::ReadPath().
void ASTRecordReader::readQualifierInfo | ( | QualifierInfo & | Info | ) |
Definition at line 9092 of file ASTReader.cpp.
References getContext(), clang::QualifierInfo::NumTemplParamLists, clang::QualifierInfo::QualifierLoc, readInt(), readNestedNameSpecifierLoc(), readTemplateParameterList(), and clang::QualifierInfo::TemplParamLists.
Referenced by clang::ASTDeclReader::VisitDeclaratorDecl(), and clang::ASTDeclReader::VisitTagDecl().
|
inline |
Definition at line 177 of file ASTRecordReader.h.
References clang::Qualifiers::fromOpaqueValue(), and readInt().
|
inline |
Definition at line 185 of file ASTRecordReader.h.
References readType().
Expected< unsigned > ASTRecordReader::readRecord | ( | llvm::BitstreamCursor & | Cursor, |
unsigned | AbbrevID | ||
) |
Reads a record with id AbbrevID from Cursor, resetting the internal state.
Definition at line 10173 of file ASTReader.cpp.
|
inline |
Read a selector from the Record, advancing Idx.
Definition at line 220 of file ASTRecordReader.h.
References clang::ASTReader::ReadSelector().
|
inline |
Read a source location, advancing Idx.
Definition at line 280 of file ASTRecordReader.h.
References clang::ASTReader::ReadSourceLocation().
Referenced by readCXXBaseSpecifier(), readCXXCtorInitializers(), readDeclarationNameInfo(), readDeclarationNameLoc(), readNestedNameSpecifierLoc(), readTemplateParameterList(), and clang::ASTDeclReader::VisitParmVarDecl().
|
inline |
Read a source range, advancing Idx.
Definition at line 285 of file ASTRecordReader.h.
References clang::ASTReader::ReadSourceRange().
Referenced by readCXXBaseSpecifier(), readDeclarationNameLoc(), and readNestedNameSpecifierLoc().
|
inline |
Reads a statement.
Definition at line 130 of file ASTRecordReader.h.
References clang::ASTReader::ReadStmt().
Referenced by readOMPChildren(), readStmtRef(), clang::ASTDeclReader::VisitBlockDecl(), clang::ASTDeclReader::VisitLifetimeExtendedTemporaryDecl(), and clang::ASTDeclReader::VisitTopLevelStmtDecl().
|
inline |
Definition at line 131 of file ASTRecordReader.h.
References readStmt().
|
inline |
Read a string, advancing Idx.
Definition at line 315 of file ASTRecordReader.h.
References clang::ASTReader::ReadString().
|
inline |
Reads a sub-expression operand during statement reading.
Definition at line 140 of file ASTRecordReader.h.
References clang::ASTReader::ReadSubExpr().
|
inline |
Reads a sub-statement operand during statement reading.
Definition at line 137 of file ASTRecordReader.h.
References clang::ASTReader::ReadSubStmt().
|
inline |
Definition at line 242 of file ASTRecordReader.h.
References clang::ASTContext::getCanonicalTemplateArgument(), getContext(), and readTemplateArgument().
Referenced by readTemplateArgument(), readTemplateArgumentList(), and clang::ASTDeclReader::VisitImplicitConceptSpecializationDecl().
void ASTRecordReader::readTemplateArgumentList | ( | SmallVectorImpl< TemplateArgument > & | TemplArgs, |
bool | Canonicalize = false |
||
) |
Read a template argument array, advancing Idx.
Definition at line 9124 of file ASTReader.cpp.
References readInt(), and readTemplateArgument().
Referenced by clang::ASTDeclReader::VisitClassTemplateSpecializationDeclImpl(), clang::ASTDeclReader::VisitFunctionDecl(), and clang::ASTDeclReader::VisitVarTemplateSpecializationDeclImpl().
void ASTRecordReader::readTemplateArgumentListInfo | ( | TemplateArgumentListInfo & | Result | ) |
Definition at line 7459 of file ASTReader.cpp.
References clang::Result.
Referenced by clang::ASTDeclReader::VisitFunctionDecl().
TemplateArgumentLoc ASTRecordReader::readTemplateArgumentLoc | ( | ) |
Reads a TemplateArgumentLoc, advancing Idx.
Definition at line 7449 of file ASTReader.cpp.
References clang::TemplateArgument::Expression, clang::TemplateArgument::getAsExpr(), and clang::TemplateArgument::getKind().
Referenced by clang::ASTStmtReader::ReadTemplateKWAndArgsInfo(), and clang::ASTDeclReader::VisitTemplateTemplateParmDecl().
TemplateArgumentLocInfo ASTRecordReader::readTemplateArgumentLocInfo | ( | TemplateArgument::ArgKind | Kind | ) |
Reads a TemplateArgumentLocInfo appropriate for the given TemplateArgument kind, advancing Idx.
Definition at line 7418 of file ASTReader.cpp.
References clang::TemplateArgument::Declaration, clang::TemplateArgument::Expression, clang::TemplateArgument::Integral, clang::TemplateArgument::Null, clang::TemplateArgument::NullPtr, clang::TemplateArgument::Pack, clang::TemplateArgument::Template, clang::TemplateArgument::TemplateExpansion, and clang::TemplateArgument::Type.
TemplateParameterList * ASTRecordReader::readTemplateParameterList | ( | ) |
Read a template parameter list, advancing Idx.
Definition at line 9105 of file ASTReader.cpp.
References clang::TemplateParameterList::Create(), getContext(), readBool(), readExpr(), readInt(), and readSourceLocation().
Referenced by readQualifierInfo(), clang::ASTDeclReader::VisitClassTemplatePartialSpecializationDecl(), clang::ASTDeclReader::VisitFriendDecl(), clang::ASTDeclReader::VisitFriendTemplateDecl(), clang::ASTDeclReader::VisitTemplateDecl(), clang::ASTDeclReader::VisitTemplateTemplateParmDecl(), and clang::ASTDeclReader::VisitVarTemplatePartialSpecializationDecl().
|
inline |
Reads a token out of a record, advancing Idx.
Definition at line 341 of file ASTRecordReader.h.
References clang::ASTReader::ReadToken().
|
inline |
Read a type from the current position in the record.
Definition at line 182 of file ASTRecordReader.h.
References clang::ASTReader::readType().
Referenced by readQualType(), clang::ASTDeclReader::VisitDeclaratorDecl(), clang::ASTDeclReader::VisitEnumDecl(), clang::ASTDeclReader::VisitFieldDecl(), clang::ASTDeclReader::VisitNonTypeTemplateParmDecl(), clang::ASTDeclReader::VisitObjCMethodDecl(), clang::ASTDeclReader::VisitObjCPropertyDecl(), clang::ASTDeclReader::VisitTypedefNameDecl(), and clang::ASTDeclReader::VisitValueDecl().
Reads the location information for a type.
Definition at line 7088 of file ASTReader.cpp.
References clang::TypeLoc::getNextTypeLoc(), clang::TypeLoc::isNull(), and clang::TypeLocVisitor< ImplClass, RetTy >::Visit().
Referenced by clang::ASTDeclReader::Visit().
TypeSourceInfo * ASTRecordReader::readTypeSourceInfo | ( | ) |
Reads a declarator info from the given record, advancing Idx.
Definition at line 7095 of file ASTReader.cpp.
References clang::TypeSourceInfo::getTypeLoc(), and clang::QualType::isNull().
Referenced by readCXXBaseSpecifier(), readCXXCtorInitializers(), readDeclarationNameLoc(), readNestedNameSpecifierLoc(), and clang::ASTDeclReader::VisitUsingEnumDecl().
|
inline |
Read a 32-bit unsigned value; required to satisfy BasicReader.
Definition at line 305 of file ASTRecordReader.h.
References readInt().
Referenced by readOMPTraitInfo().
|
inline |
Read a 64-bit unsigned value; required to satisfy BasicReader.
Definition at line 310 of file ASTRecordReader.h.
References readInt().
void ASTRecordReader::readUnresolvedSet | ( | LazyASTUnresolvedSet & | Set | ) |
Read a UnresolvedSet structure, advancing Idx.
Read a UnresolvedSet structure.
Definition at line 9134 of file ASTReader.cpp.
References getContext(), readDeclID(), readInt(), and clang::Set.
|
inline |
Read a version tuple, advancing Idx.
Definition at line 325 of file ASTRecordReader.h.
References clang::ASTReader::ReadVersionTuple().
|
inline |
Read the record that describes the visible contents of a DC.
Definition at line 106 of file ASTRecordReader.h.
References clang::serialization::ModuleFile::DeclsCursor, and ID.
|
inline |
Definition at line 345 of file ASTRecordReader.h.
References ID, and clang::ASTReader::RecordSwitchCaseID().
|
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(), clang::ASTDeclReader::VisitCXXMethodDecl(), and clang::ASTDeclReader::VisitImportDecl().