clang 19.0.0git
Public Member Functions | List of all members
clang::ASTRecordReader Class Reference

An object for streaming information from a record. More...

#include "clang/Serialization/ASTRecordReader.h"

Inheritance diagram for clang::ASTRecordReader:
Inheritance graph
[legend]

Public Member Functions

 ASTRecordReader (ASTReader &Reader, ModuleFile &F)
 Construct an ASTRecordReader that uses the default encoding scheme.
 
Expected< unsignedreadRecord (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).
 
ASTContextgetContext ()
 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.
 
ModulegetSubmodule (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).
 
StmtreadStmt ()
 Reads a statement.
 
StmtreadStmtRef ()
 
ExprreadExpr ()
 Reads an expression.
 
StmtreadSubStmt ()
 Reads a sub-statement operand during statement reading.
 
ExprreadSubExpr ()
 Reads a sub-expression operand during statement reading.
 
template<typename T >
TGetLocalDeclAs (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 ASTTemplateArgumentListInforeadASTTemplateArgumentListInfo ()
 
ConceptReferencereadConceptReference ()
 
TypeSourceInforeadTypeSourceInfo ()
 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 ()
 
GlobalDeclID readDeclID ()
 Reads a declaration ID from the given position in this record.
 
DeclreadDecl ()
 Reads a declaration from the given position in a record in the given module, advancing Idx.
 
DeclreadDeclRef ()
 
template<typename T >
TreadDeclAs ()
 Reads a declaration from the given position in the record, advancing Idx.
 
IdentifierInforeadIdentifier ()
 
Selector readSelector ()
 Read a selector from the Record, advancing Idx.
 
TypeCoupledDeclRefInfo readTypeCoupledDeclRefInfo ()
 
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)
 
TemplateParameterListreadTemplateParameterList ()
 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.
 
CXXTemporaryreadCXXTemporary ()
 
OMPTraitInforeadOMPTraitInfo ()
 Read an OMPTraitInfo object, advancing Idx.
 
OMPClausereadOMPClause ()
 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.
 
OpenACCClausereadOpenACCClause ()
 Read an OpenACC clause, advancing Idx.
 
void readOpenACCClauseList (MutableArrayRef< const OpenACCClause * > Clauses)
 Read a list of OpenACC clauses into the passed SmallVector.
 
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.
 
AttrreadAttr ()
 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)
 
SwitchCasegetSwitchCaseWithID (unsigned ID)
 Retrieve the switch-case statement with the given ID.
 
- Public Member Functions inherited from clang::serialization::DataStreamBasicReader< ASTRecordReader >
ASTRecordReaderfind (const char *propertyName)
 Implement property-find by ignoring it.
 
readEnum ()
 
ASTRecordReaderreadObject ()
 
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 ()
 
NestedNameSpecifierreadNestedNameSpecifier ()
 

Additional Inherited Members

- Protected Member Functions inherited from clang::serialization::DataStreamBasicReader< ASTRecordReader >
 DataStreamBasicReader (ASTContext &ctx)
 

Detailed Description

An object for streaming information from a record.

Definition at line 32 of file ASTRecordReader.h.

Constructor & Destructor Documentation

◆ ASTRecordReader()

clang::ASTRecordReader::ASTRecordReader ( ASTReader Reader,
ModuleFile F 
)
inline

Construct an ASTRecordReader that uses the default encoding scheme.

Definition at line 47 of file ASTRecordReader.h.

Member Function Documentation

◆ back()

uint64_t clang::ASTRecordReader::back ( )
inline

Returns the last value in this record.

Definition at line 71 of file ASTRecordReader.h.

◆ getContext()

ASTContext & clang::ASTRecordReader::getContext ( )
inline

◆ getGlobalBitOffset()

uint64_t clang::ASTRecordReader::getGlobalBitOffset ( uint64_t  LocalOffset)
inline

Read information about an exception specification (inherited).

Get the global offset corresponding to a local offset.

Definition at line 119 of file ASTRecordReader.h.

◆ getGlobalSubmoduleID()

serialization::SubmoduleID clang::ASTRecordReader::getGlobalSubmoduleID ( unsigned  LocalID)
inline

Retrieve the global submodule ID its local ID number.

Definition at line 91 of file ASTRecordReader.h.

References clang::ASTReader::getGlobalSubmoduleID().

◆ getGlobalTypeID()

serialization::TypeID clang::ASTRecordReader::getGlobalTypeID ( unsigned  LocalID) const
inline

Map a local type ID within a given AST file to a global type ID.

Definition at line 166 of file ASTRecordReader.h.

References clang::ASTReader::getGlobalTypeID().

◆ getIdx()

unsigned clang::ASTRecordReader::getIdx ( ) const
inline

The current position in this record.

Definition at line 62 of file ASTRecordReader.h.

◆ GetLocalDeclAs()

template<typename T >
T * clang::ASTRecordReader::GetLocalDeclAs ( LocalDeclID  LocalID)
inline

Reads a declaration with the given local ID in the given module.

Returns
The requested declaration, casted to the given return type.

Definition at line 139 of file ASTRecordReader.h.

References clang::ASTReader::GetLocalDecl().

◆ getSubmodule()

Module * clang::ASTRecordReader::getSubmodule ( serialization::SubmoduleID  GlobalID)
inline

Retrieve the submodule that corresponds to a global submodule ID.

Definition at line 96 of file ASTRecordReader.h.

References clang::ASTReader::getSubmodule().

◆ getSwitchCaseWithID()

SwitchCase * clang::ASTRecordReader::getSwitchCaseWithID ( unsigned  ID)
inline

Retrieve the switch-case statement with the given ID.

Definition at line 355 of file ASTRecordReader.h.

References clang::ASTReader::getSwitchCaseWithID(), and ID.

◆ isModule()

bool clang::ASTRecordReader::isModule ( ) const
inline

Is this a module file for a module (rather than a PCH or similar).

Definition at line 56 of file ASTRecordReader.h.

References clang::serialization::ModuleFile::isModule().

◆ operator[]()

const uint64_t & clang::ASTRecordReader::operator[] ( size_t  N)
inline

An arbitrary index in this record.

Definition at line 68 of file ASTRecordReader.h.

◆ peekInt()

uint64_t clang::ASTRecordReader::peekInt ( )
inline

Returns the current value in this record, without advancing.

Definition at line 84 of file ASTRecordReader.h.

◆ readAPFloat()

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 9352 of file ASTReader.cpp.

References clang::serialization::DataStreamBasicReader< ASTRecordReader >::readAPInt().

◆ readASTTemplateArgumentListInfo()

const ASTTemplateArgumentListInfo * ASTRecordReader::readASTTemplateArgumentListInfo ( )

Definition at line 7504 of file ASTReader.cpp.

References clang::ASTTemplateArgumentListInfo::Create(), and clang::Result.

◆ readAttr()

Attr * ASTRecordReader::readAttr ( )

Reads one attribute from the current stream position, advancing Idx.

Definition at line 3146 of file ASTReaderDecl.cpp.

References clang::AttributeCommonInfo::AS_Keyword, getContext(), and V.

Referenced by readAttributes(), and readBTFTypeTagAttr().

◆ readAttributes()

void ASTRecordReader::readAttributes ( AttrVec Attrs)

Reads attributes from the current stream position, advancing Idx.

Reads attributes from the current stream position.

Definition at line 3182 of file ASTReaderDecl.cpp.

References readAttr(), and readInt().

◆ readBool()

bool clang::ASTRecordReader::readBool ( )
inline

◆ readBTFTypeTagAttr()

BTFTypeTagAttr * clang::ASTRecordReader::readBTFTypeTagAttr ( )
inline

Read an BTFTypeTagAttr object.

Definition at line 341 of file ASTRecordReader.h.

References readAttr().

◆ readConceptReference()

ConceptReference * ASTRecordReader::readConceptReference ( )

Definition at line 6962 of file ASTReader.cpp.

References clang::ConceptReference::Create().

◆ readCXXBaseSpecifier()

CXXBaseSpecifier ASTRecordReader::readCXXBaseSpecifier ( )

Read a C++ base specifier, advancing Idx.

Definition at line 9191 of file ASTReader.cpp.

References Range, readBool(), readInt(), readSourceLocation(), readSourceRange(), readTypeSourceInfo(), and clang::Result.

◆ readCXXCtorInitializers()

CXXCtorInitializer ** ASTRecordReader::readCXXCtorInitializers ( )

◆ readCXXTemporary()

CXXTemporary * clang::ASTRecordReader::readCXXTemporary ( )
inline

Definition at line 259 of file ASTRecordReader.h.

References clang::ASTReader::ReadCXXTemporary().

◆ readDecl()

Decl * clang::ASTRecordReader::readDecl ( )
inline

Reads a declaration from the given position in a record in the given module, advancing Idx.

Definition at line 189 of file ASTRecordReader.h.

References clang::ASTReader::ReadDecl().

Referenced by readDeclRef().

◆ readDeclarationNameInfo()

DeclarationNameInfo ASTRecordReader::readDeclarationNameInfo ( )

◆ readDeclarationNameLoc()

DeclarationNameLoc ASTRecordReader::readDeclarationNameLoc ( DeclarationName  Name)

◆ readDeclAs()

template<typename T >
T * clang::ASTRecordReader::readDeclAs ( )
inline

Reads a declaration from the given position in the record, advancing Idx.

Returns
The declaration read from this location, casted to the given result type.

Definition at line 202 of file ASTRecordReader.h.

References clang::ASTReader::ReadDeclAs(), and clang::T.

◆ readDeclID()

GlobalDeclID clang::ASTRecordReader::readDeclID ( )
inline

Reads a declaration ID from the given position in this record.

Returns
The declaration ID read from the record, adjusted to a global ID.

Definition at line 185 of file ASTRecordReader.h.

References clang::ASTReader::ReadDeclID().

Referenced by readUnresolvedSet().

◆ readDeclRef()

Decl * clang::ASTRecordReader::readDeclRef ( )
inline

Definition at line 192 of file ASTRecordReader.h.

References readDecl().

◆ readExplicitSpec()

ExplicitSpecifier clang::ASTRecordReader::readExplicitSpec ( )
inline

Definition at line 106 of file ASTRecordReader.h.

References readExpr(), and readInt().

◆ readExpr()

Expr * clang::ASTRecordReader::readExpr ( )
inline

Reads an expression.

Definition at line 128 of file ASTRecordReader.h.

References clang::ASTReader::ReadExpr().

Referenced by readCXXCtorInitializers(), readExplicitSpec(), and readTemplateParameterList().

◆ readIdentifier()

IdentifierInfo * clang::ASTRecordReader::readIdentifier ( )
inline

◆ readInt()

uint64_t clang::ASTRecordReader::readInt ( )
inline

◆ readIntArray()

ArrayRef< uint64_t > clang::ASTRecordReader::readIntArray ( unsigned  Len)
inline

Definition at line 77 of file ASTRecordReader.h.

◆ readLexicalDeclContextStorage()

bool clang::ASTRecordReader::readLexicalDeclContextStorage ( uint64_t  Offset,
DeclContext DC 
)
inline

Read the record that describes the lexical contents of a DC.

Definition at line 101 of file ASTRecordReader.h.

References clang::serialization::ModuleFile::DeclsCursor.

◆ readNestedNameSpecifierLoc()

NestedNameSpecifierLoc ASTRecordReader::readNestedNameSpecifierLoc ( )

◆ readOMPChildren()

void ASTRecordReader::readOMPChildren ( OMPChildren Data)

Read an OpenMP children, advancing Idx.

Definition at line 11745 of file ASTReader.cpp.

References clang::Data, readOMPClause(), readStmt(), and skipInts().

◆ readOMPClause()

OMPClause * ASTRecordReader::readOMPClause ( )

Read an OpenMP clause, advancing Idx.

Definition at line 10281 of file ASTReader.cpp.

References clang::OMPClauseReader::readClause().

Referenced by readOMPChildren().

◆ readOMPTraitInfo()

OMPTraitInfo * ASTRecordReader::readOMPTraitInfo ( )

◆ readOpenACCClause()

OpenACCClause * ASTRecordReader::readOpenACCClause ( )

Read an OpenACC clause, advancing Idx.

Definition at line 11778 of file ASTReader.cpp.

References clang::Async, clang::Attach, clang::Auto, clang::Bind, clang::Collapse, clang::Copy, clang::CopyIn, clang::CopyOut, clang::OpenACCDeviceTypeClause::Create(), clang::OpenACCCopyClause::Create(), clang::OpenACCCopyInClause::Create(), clang::OpenACCCopyOutClause::Create(), clang::OpenACCCreateClause::Create(), clang::OpenACCDefaultClause::Create(), clang::OpenACCNumGangsClause::Create(), clang::OpenACCPrivateClause::Create(), clang::OpenACCFirstPrivateClause::Create(), clang::OpenACCDevicePtrClause::Create(), clang::OpenACCAttachClause::Create(), clang::OpenACCNoCreateClause::Create(), clang::OpenACCPresentClause::Create(), clang::OpenACCIfClause::Create(), clang::OpenACCSelfClause::Create(), clang::OpenACCWaitClause::Create(), clang::OpenACCNumWorkersClause::Create(), clang::OpenACCVectorLengthClause::Create(), clang::OpenACCAsyncClause::Create(), clang::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, Loc, 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(), readIdentifier(), readInt(), readOpenACCIntExprList(), readOpenACCVarList(), readSourceLocation(), readSubExpr(), clang::Reduction, clang::Self, clang::Seq, clang::Tile, clang::UseDevice, clang::Vector, clang::VectorLength, clang::Wait, and clang::Worker.

Referenced by readOpenACCClauseList().

◆ readOpenACCClauseList()

void ASTRecordReader::readOpenACCClauseList ( MutableArrayRef< const OpenACCClause * >  Clauses)

Read a list of OpenACC clauses into the passed SmallVector.

Definition at line 11953 of file ASTReader.cpp.

References readOpenACCClause().

◆ readOpenACCIntExprList()

SmallVector< Expr * > ASTRecordReader::readOpenACCIntExprList ( )

Read a list of Exprs used for a int-expr-list.

Definition at line 11770 of file ASTReader.cpp.

References readInt(), and readSubExpr().

Referenced by readOpenACCClause().

◆ readOpenACCVarList()

SmallVector< Expr * > ASTRecordReader::readOpenACCVarList ( )

Read a list of Exprs used for a var-list.

Definition at line 11762 of file ASTReader.cpp.

References readInt(), and readSubExpr().

Referenced by readOpenACCClause().

◆ readPath()

std::string clang::ASTRecordReader::readPath ( )
inline

Read a path, advancing Idx.

Definition at line 325 of file ASTRecordReader.h.

References clang::ASTReader::ReadPath().

◆ readQualifierInfo()

void ASTRecordReader::readQualifierInfo ( QualifierInfo Info)

◆ readQualifiers()

Qualifiers clang::ASTRecordReader::readQualifiers ( )
inline

Definition at line 170 of file ASTRecordReader.h.

References clang::Qualifiers::fromOpaqueValue(), and readInt().

◆ readQualType()

QualType clang::ASTRecordReader::readQualType ( )
inline

Definition at line 178 of file ASTRecordReader.h.

References readType().

◆ readRecord()

Expected< unsigned > ASTRecordReader::readRecord ( llvm::BitstreamCursor &  Cursor,
unsigned  AbbrevID 
)

Reads a record with id AbbrevID from Cursor, resetting the internal state.

Definition at line 10250 of file ASTReader.cpp.

◆ readSelector()

Selector clang::ASTRecordReader::readSelector ( )
inline

Read a selector from the Record, advancing Idx.

Definition at line 211 of file ASTRecordReader.h.

References clang::ASTReader::ReadSelector().

◆ readSourceLocation()

SourceLocation clang::ASTRecordReader::readSourceLocation ( LocSeq Seq = nullptr)
inline

◆ readSourceRange()

SourceRange clang::ASTRecordReader::readSourceRange ( LocSeq Seq = nullptr)
inline

Read a source range, advancing Idx.

Definition at line 290 of file ASTRecordReader.h.

References clang::ASTReader::ReadSourceRange(), and clang::Seq.

Referenced by readCXXBaseSpecifier(), readDeclarationNameLoc(), and readNestedNameSpecifierLoc().

◆ readStmt()

Stmt * clang::ASTRecordReader::readStmt ( )
inline

Reads a statement.

Definition at line 124 of file ASTRecordReader.h.

References clang::ASTReader::ReadStmt().

Referenced by readOMPChildren(), and readStmtRef().

◆ readStmtRef()

Stmt * clang::ASTRecordReader::readStmtRef ( )
inline

Definition at line 125 of file ASTRecordReader.h.

References readStmt().

◆ readString()

std::string clang::ASTRecordReader::readString ( )
inline

Read a string, advancing Idx.

Definition at line 320 of file ASTRecordReader.h.

References clang::ASTReader::ReadString().

◆ readSubExpr()

Expr * clang::ASTRecordReader::readSubExpr ( )
inline

Reads a sub-expression operand during statement reading.

Definition at line 134 of file ASTRecordReader.h.

References clang::ASTReader::ReadSubExpr().

Referenced by readOpenACCClause(), readOpenACCIntExprList(), and readOpenACCVarList().

◆ readSubStmt()

Stmt * clang::ASTRecordReader::readSubStmt ( )
inline

Reads a sub-statement operand during statement reading.

Definition at line 131 of file ASTRecordReader.h.

References clang::ASTReader::ReadSubStmt().

◆ readTemplateArgument()

TemplateArgument clang::ASTRecordReader::readTemplateArgument ( bool  Canonicalize)
inline

◆ readTemplateArgumentList()

void ASTRecordReader::readTemplateArgumentList ( SmallVectorImpl< TemplateArgument > &  TemplArgs,
bool  Canonicalize = false 
)

Read a template argument array, advancing Idx.

Definition at line 9170 of file ASTReader.cpp.

References readInt(), and readTemplateArgument().

◆ readTemplateArgumentListInfo()

void ASTRecordReader::readTemplateArgumentListInfo ( TemplateArgumentListInfo Result)

Definition at line 7494 of file ASTReader.cpp.

References clang::Result.

◆ readTemplateArgumentLoc()

TemplateArgumentLoc ASTRecordReader::readTemplateArgumentLoc ( )

◆ readTemplateArgumentLocInfo()

TemplateArgumentLocInfo ASTRecordReader::readTemplateArgumentLocInfo ( TemplateArgument::ArgKind  Kind)

◆ readTemplateParameterList()

TemplateParameterList * ASTRecordReader::readTemplateParameterList ( )

Read a template parameter list, advancing Idx.

Definition at line 9151 of file ASTReader.cpp.

References clang::TemplateParameterList::Create(), getContext(), readBool(), readExpr(), readInt(), and readSourceLocation().

Referenced by readQualifierInfo().

◆ readToken()

Token clang::ASTRecordReader::readToken ( )
inline

Reads a token out of a record, advancing Idx.

Definition at line 346 of file ASTRecordReader.h.

References clang::ASTReader::ReadToken().

◆ readType()

QualType clang::ASTRecordReader::readType ( )
inline

Read a type from the current position in the record.

Definition at line 175 of file ASTRecordReader.h.

References clang::ASTReader::readType().

Referenced by readQualType().

◆ readTypeCoupledDeclRefInfo()

TypeCoupledDeclRefInfo ASTRecordReader::readTypeCoupledDeclRefInfo ( )

Definition at line 9134 of file ASTReader.cpp.

References readBool().

◆ readTypeLoc()

void ASTRecordReader::readTypeLoc ( TypeLoc  TL,
LocSeq Seq = nullptr 
)

Reads the location information for a type.

Definition at line 7119 of file ASTReader.cpp.

References clang::TypeLoc::getNextTypeLoc(), clang::TypeLoc::isNull(), clang::Seq, and clang::TypeLocVisitor< ImplClass, RetTy >::Visit().

◆ readTypeSourceInfo()

TypeSourceInfo * ASTRecordReader::readTypeSourceInfo ( )

Reads a declarator info from the given record, advancing Idx.

Definition at line 7126 of file ASTReader.cpp.

References clang::TypeSourceInfo::getTypeLoc(), and clang::QualType::isNull().

Referenced by readCXXBaseSpecifier(), readCXXCtorInitializers(), readDeclarationNameLoc(), and readNestedNameSpecifierLoc().

◆ readUInt32()

uint32_t clang::ASTRecordReader::readUInt32 ( )
inline

Read a 32-bit unsigned value; required to satisfy BasicReader.

Definition at line 310 of file ASTRecordReader.h.

References readInt().

Referenced by readOMPTraitInfo().

◆ readUInt64()

uint64_t clang::ASTRecordReader::readUInt64 ( )
inline

Read a 64-bit unsigned value; required to satisfy BasicReader.

Definition at line 315 of file ASTRecordReader.h.

References readInt().

◆ readUnresolvedSet()

void ASTRecordReader::readUnresolvedSet ( LazyASTUnresolvedSet Set)

Read a UnresolvedSet structure, advancing Idx.

Read a UnresolvedSet structure.

Definition at line 9180 of file ASTReader.cpp.

References getContext(), readDeclID(), readInt(), and clang::Set.

◆ readVersionTuple()

VersionTuple clang::ASTRecordReader::readVersionTuple ( )
inline

Read a version tuple, advancing Idx.

Definition at line 330 of file ASTRecordReader.h.

References clang::ASTReader::ReadVersionTuple().

◆ recordSwitchCaseID()

void clang::ASTRecordReader::recordSwitchCaseID ( SwitchCase SC,
unsigned  ID 
)
inline

Definition at line 350 of file ASTRecordReader.h.

References ID, and clang::ASTReader::RecordSwitchCaseID().

◆ size()

size_t clang::ASTRecordReader::size ( ) const
inline

The length of this record.

Definition at line 65 of file ASTRecordReader.h.

◆ skipInts()

void clang::ASTRecordReader::skipInts ( unsigned  N)
inline

Skips the specified number of values.

Definition at line 87 of file ASTRecordReader.h.

Referenced by readOMPChildren().


The documentation for this class was generated from the following files: