clang 8.0.0

Public Member Functions | List of all members
clang::ASTRecordWriter Class Reference

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

`#include "clang/Serialization/ASTWriter.h"`

## Public Member Functions
| ASTRecordWriter (ASTWriter &Writer, ASTWriter::RecordDataImpl &Record)
| Construct a ASTRecordWriter that uses the default encoding scheme. More...
| ASTRecordWriter (ASTRecordWriter &Parent, ASTWriter::RecordDataImpl &Record)
| Construct a ASTRecordWriter that uses the same encoding scheme as another ASTRecordWriter. More...
| ASTRecordWriter (const ASTRecordWriter &)=delete
| Copying an ASTRecordWriter is almost certainly a bug. More...
ASTRecordWriter & | operator= (const ASTRecordWriter &)=delete
ASTWriter::RecordDataImpl & | getRecordData () const
| Extract the underlying record storage. More...
uint64_t | Emit (unsigned Code, unsigned Abbrev=0)
| Emit the record to the stream, followed by its substatements, and return its offset. More...
uint64_t | EmitStmt (unsigned Code, unsigned Abbrev=0)
| Emit the record to the stream, preceded by its substatements. More...
void | AddOffset (uint64_t BitOffset)
| Add a bit offset into the record. More...
void | AddStmt (Stmt *S)
| Add the given statement or expression to the queue of statements to emit. More...
void | AddFunctionDefinition (const FunctionDecl *FD)
| Add a definition for the given function to the queue of statements to emit. More...
void | AddSourceLocation (SourceLocation Loc)
| Emit a source location. More...
void | AddSourceRange (SourceRange Range)
| Emit a source range. More...
void | AddAPInt (const llvm::APInt &Value)
| Emit an integral value. More...
void | AddAPSInt (const llvm::APSInt &Value)
| Emit a signed integral value. More...
void | AddAPFloat (const llvm::APFloat &Value)
| Emit a floating-point value. More...
void | AddIdentifierRef (const IdentifierInfo *II)
| Emit a reference to an identifier. More...
void | AddSelectorRef (Selector S)
| Emit a Selector (which is a smart pointer reference). More...
void | AddCXXTemporary (const CXXTemporary *Temp)
| Emit a CXXTemporary. More...
void | AddCXXBaseSpecifier (const CXXBaseSpecifier &Base)
| Emit a C++ base specifier. More...
void | AddCXXBaseSpecifiers (ArrayRef< CXXBaseSpecifier > Bases)
| Emit a set of C++ base specifiers. More...
void | AddTypeRef (QualType T)
| Emit a reference to a type. More...
void | AddTypeSourceInfo (TypeSourceInfo *TInfo)
| Emits a reference to a declarator info. More...
void | AddTypeLoc (TypeLoc TL)
| Emits source location information for a type. Does not emit the type. More...
void | AddTemplateArgumentLocInfo (TemplateArgument::ArgKind Kind, const TemplateArgumentLocInfo &Arg)
| Emits a template argument location info. More...
void | AddTemplateArgumentLoc (const TemplateArgumentLoc &Arg)
| Emits a template argument location. More...
void | AddASTTemplateArgumentListInfo (const ASTTemplateArgumentListInfo *ASTTemplArgList)
| Emits an AST template argument list info. More...
void | AddDeclRef (const Decl *D)
| Emit a reference to a declaration. More...
void | AddDeclarationName (DeclarationName Name)
| Emit a declaration name. More...
void | AddDeclarationNameLoc (const DeclarationNameLoc &DNLoc, DeclarationName Name)
void | AddDeclarationNameInfo (const DeclarationNameInfo &NameInfo)
void | AddQualifierInfo (const QualifierInfo &Info)
void | AddNestedNameSpecifier (NestedNameSpecifier *NNS)
| Emit a nested name specifier. More...
void | AddNestedNameSpecifierLoc (NestedNameSpecifierLoc NNS)
| Emit a nested name specifier with source-location information. More...
void | AddTemplateName (TemplateName Name)
| Emit a template name. More...
void | AddTemplateArgument (const TemplateArgument &Arg)
| Emit a template argument. More...
void | AddTemplateParameterList (const TemplateParameterList *TemplateParams)
| Emit a template parameter list. More...
void | AddTemplateArgumentList (const TemplateArgumentList *TemplateArgs)
| Emit a template argument list. More...
void | AddUnresolvedSet (const ASTUnresolvedSet &Set)
| Emit a UnresolvedSet structure. More...
void | AddCXXCtorInitializers (ArrayRef< CXXCtorInitializer *> CtorInits)
| Emit a CXXCtorInitializer array. More...
void | AddCXXDefinitionData (const CXXRecordDecl *D)
void | AddString (StringRef Str)
| Emit a string. More...
void | AddPath (StringRef Path)
| Emit a path. More...
void | AddVersionTuple (const VersionTuple &Version)
| Emit a version tuple. More...
void | AddAttr (const Attr *A)
void | AddAttributes (ArrayRef< const Attr *> Attrs)
| Emit a list of attributes. More...
void | push_back (uint64_t N)
| Minimal vector-like interface. More...
template<typename InputIterator >
void | append (InputIterator begin, InputIterator end)
bool | empty () const
size_t | size () const
uint64_t & | operator[] (size_t N)

## Detailed Description

An object for streaming information to a record.

Definition at line 747 of file ASTWriter.h.

## Constructor & Destructor Documentation

## ◆ ASTRecordWriter() [1/3]

clang::ASTRecordWriter::ASTRecordWriter | ( | ASTWriter & | Writer,
|  | ASTWriter::RecordDataImpl & | Record
| ) |  |
| inline

Construct a ASTRecordWriter that uses the default encoding scheme.

Definition at line 778 of file ASTWriter.h.

## ◆ ASTRecordWriter() [2/3]

clang::ASTRecordWriter::ASTRecordWriter | ( | ASTRecordWriter & | Parent,
|  | ASTWriter::RecordDataImpl & | Record
| ) |  |
| inline

Construct a ASTRecordWriter that uses the same encoding scheme as another ASTRecordWriter.

Definition at line 783 of file ASTWriter.h.

## ◆ ASTRecordWriter() [3/3]

clang::ASTRecordWriter::ASTRecordWriter | ( | const ASTRecordWriter & |  | ) |
| delete

Copying an ASTRecordWriter is almost certainly a bug.

## Member Function Documentation

## ◆ AddAPFloat()

void ASTRecordWriter::AddAPFloat | ( | const llvm::APFloat & | Value | ) |

Emit a floating-point value.

Definition at line 5341 of file ASTWriter.cpp.

## ◆ AddAPInt()

void ASTRecordWriter::AddAPInt | ( | const llvm::APInt & | Value | ) |

Emit an integral value.

Definition at line 5330 of file ASTWriter.cpp.

## ◆ AddAPSInt()

void ASTRecordWriter::AddAPSInt | ( | const llvm::APSInt & | Value | ) |

Emit a signed integral value.

Definition at line 5336 of file ASTWriter.cpp.

## ◆ AddASTTemplateArgumentListInfo()

void ASTRecordWriter::AddASTTemplateArgumentListInfo | ( | const ASTTemplateArgumentListInfo * | ASTTemplArgList | ) |

Emits an AST template argument list info.

Definition at line 5921 of file ASTWriter.cpp.

References clang::ASTWriter::AddSourceLocation(), clang::ASTTemplateArgumentListInfo::getTemplateArgs(), clang::ASTTemplateArgumentListInfo::LAngleLoc, clang::ASTTemplateArgumentListInfo::NumTemplateArgs, and clang::ASTTemplateArgumentListInfo::RAngleLoc.

## ◆ AddAttr()

void ASTRecordWriter::AddAttr | ( | const Attr * | A | ) |

Definition at line 4469 of file ASTWriter.cpp.

References clang::Attr::getKind(), and clang::Attr::getRange().

## ◆ AddAttributes()

void ASTRecordWriter::AddAttributes | ( | ArrayRef< const Attr *> | Attrs | ) |

Emit a list of attributes.

Emit the list of attributes to the specified record.

Definition at line 4480 of file ASTWriter.cpp.

## ◆ AddCXXBaseSpecifier()

void ASTRecordWriter::AddCXXBaseSpecifier | ( | const CXXBaseSpecifier & | Base | ) |

Emit a C++ base specifier.

Definition at line 5942 of file ASTWriter.cpp.

References clang::ASTWriter::AddSourceLocation(), clang::ASTWriter::AddSourceRange(), clang::CXXBaseSpecifier::getAccessSpecifierAsWritten(), clang::CXXBaseSpecifier::getEllipsisLoc(), clang::CXXBaseSpecifier::getInheritConstructors(), clang::CXXBaseSpecifier::getSourceRange(), clang::CXXBaseSpecifier::getTypeSourceInfo(), clang::CXXBaseSpecifier::isBaseOfClass(), clang::CXXBaseSpecifier::isPackExpansion(), and clang::CXXBaseSpecifier::isVirtual().

Referenced by EmitCXXBaseSpecifiers().

## ◆ AddCXXBaseSpecifiers()

void ASTRecordWriter::AddCXXBaseSpecifiers | ( | ArrayRef< CXXBaseSpecifier > | Bases | ) |

Emit a set of C++ base specifiers.

Definition at line 5966 of file ASTWriter.cpp.

References EmitCXXBaseSpecifiers().

## ◆ AddCXXCtorInitializers()

void ASTRecordWriter::AddCXXCtorInitializers | ( | ArrayRef< CXXCtorInitializer *> | CtorInits | ) |

Emit a CXXCtorInitializer array.

Definition at line 6006 of file ASTWriter.cpp.

References EmitCXXCtorInitializers().

## ◆ AddCXXDefinitionData()

void ASTRecordWriter::AddCXXDefinitionData | ( | const CXXRecordDecl * | D | ) |

Definition at line 6011 of file ASTWriter.cpp.

References clang::ASTWriter::AddDeclRef(), clang::ASTWriter::AddSourceLocation(), clang::LambdaCapture::capturesVariable(), clang::LambdaCapture::getCapturedVar(), clang::LambdaCapture::getCaptureKind(), clang::LambdaCapture::getEllipsisLoc(), clang::serialization::TypeIdx::getIndex(), clang::CXXRecordDecl::getLambdaContextDecl(), clang::LambdaCapture::getLocation(), clang::CXXRecordDecl::getODRHash(), clang::TagDecl::isDependentType(), clang::LambdaCapture::isImplicit(), clang::LambdaCapture::isPackExpansion(), clang::LCK_ByCopy, clang::LCK_ByRef, clang::LCK_StarThis, clang::LCK_This, clang::LCK_VLAType, clang::serialization::NUM_PREDEF_DECL_IDS, clang::serialization::NUM_PREDEF_IDENT_IDS, clang::serialization::NUM_PREDEF_MACRO_IDS, clang::serialization::NUM_PREDEF_SELECTOR_IDS, clang::serialization::NUM_PREDEF_SUBMODULE_IDS, and clang::serialization::NUM_PREDEF_TYPE_IDS.

## ◆ AddCXXTemporary()

void ASTRecordWriter::AddCXXTemporary | ( | const CXXTemporary * | Temp | ) |

Emit a CXXTemporary.

Definition at line 5410 of file ASTWriter.cpp.

References clang::ASTWriter::AddDeclRef(), and clang::CXXTemporary::getDestructor().

## ◆ AddDeclarationName()

void ASTRecordWriter::AddDeclarationName | ( | DeclarationName | Name | ) |

Emit a declaration name.

Definition at line 5603 of file ASTWriter.cpp.

## ◆ AddDeclarationNameInfo()

void ASTRecordWriter::AddDeclarationNameInfo | ( | const DeclarationNameInfo & | NameInfo | ) |

Definition at line 5693 of file ASTWriter.cpp.

References clang::ASTWriter::AddSourceLocation(), clang::DeclarationNameInfo::getInfo(), clang::DeclarationNameInfo::getLoc(), and clang::DeclarationNameInfo::getName().

## ◆ AddDeclarationNameLoc()

void ASTRecordWriter::AddDeclarationNameLoc | ( | const DeclarationNameLoc & | DNLoc,
|  | DeclarationName | Name
| ) |  |

Definition at line 5662 of file ASTWriter.cpp.

## ◆ AddDeclRef()

void clang::ASTRecordWriter::AddDeclRef | ( | const Decl * | D | ) |
| inline

Emit a reference to a declaration.

Definition at line 905 of file ASTWriter.h.

References clang::ASTWriter::AddDeclRef().

Referenced by addExceptionSpec(), clang::ASTDeclWriter::AddFirstDeclFromEachModule(), clang::ASTDeclWriter::AddObjCTypeParamList(), EmitCXXCtorInitializers(), and clang::ASTDeclWriter::VisitRedeclarable().

## ◆ AddFunctionDefinition()

void ASTRecordWriter::AddFunctionDefinition | ( | const FunctionDecl * | FD | ) |

Add a definition for the given function to the queue of statements to emit.

Definition at line 2319 of file ASTWriterDecl.cpp.

References clang::FunctionDecl::doesThisDeclarationHaveABody(), clang::FunctionDecl::getBody(), clang::GVA_Internal, clang::GVA_StrongExternal, clang::Decl::hasAttr(), clang::DeclContext::isDependentContext(), and clang::Module::ModuleInterfaceUnit.

## ◆ AddIdentifierRef()

void clang::ASTRecordWriter::AddIdentifierRef | ( | const IdentifierInfo * | II | ) |
| inline

Emit a reference to an identifier.

Definition at line 866 of file ASTWriter.h.

References clang::ASTWriter::AddIdentifierRef().

## ◆ AddNestedNameSpecifier()

void ASTRecordWriter::AddNestedNameSpecifier | ( | NestedNameSpecifier * | NNS | ) |

Emit a nested name specifier.

Definition at line 5707 of file ASTWriter.cpp.

References clang::ASTWriter::AddDeclRef(), clang::ASTWriter::AddIdentifierRef(), clang::ASTWriter::AddTypeRef(), clang::NestedNameSpecifier::getAsIdentifier(), clang::NestedNameSpecifier::getAsNamespace(), clang::NestedNameSpecifier::getAsNamespaceAlias(), clang::NestedNameSpecifier::getAsRecordDecl(), clang::NestedNameSpecifier::getAsType(), clang::NestedNameSpecifier::getKind(), clang::NestedNameSpecifier::getPrefix(), clang::NestedNameSpecifier::Global, clang::NestedNameSpecifier::Identifier, clang::NestedNameSpecifier::Namespace, clang::NestedNameSpecifier::NamespaceAlias, clang::NestedNameSpecifier::Super, clang::NestedNameSpecifier::TypeSpec, and clang::NestedNameSpecifier::TypeSpecWithTemplate.

## ◆ AddNestedNameSpecifierLoc()

void ASTRecordWriter::AddNestedNameSpecifierLoc | ( | NestedNameSpecifierLoc | NNS | ) |

Emit a nested name specifier with source-location information.

Definition at line 5753 of file ASTWriter.cpp.

References clang::ASTWriter::AddDeclRef(), clang::ASTWriter::AddIdentifierRef(), clang::ASTWriter::AddSourceLocation(), clang::ASTWriter::AddSourceRange(), clang::ASTWriter::AddTypeRef(), clang::NestedNameSpecifier::getAsIdentifier(), clang::NestedNameSpecifier::getAsNamespace(), clang::NestedNameSpecifier::getAsNamespaceAlias(), clang::NestedNameSpecifier::getAsRecordDecl(), clang::SourceRange::getEnd(), clang::NestedNameSpecifier::getKind(), clang::NestedNameSpecifierLoc::getLocalSourceRange(), clang::NestedNameSpecifierLoc::getNestedNameSpecifier(), clang::NestedNameSpecifierLoc::getPrefix(), clang::TypeLoc::getType(), clang::NestedNameSpecifierLoc::getTypeLoc(), clang::NestedNameSpecifier::Global, clang::NestedNameSpecifier::Identifier, clang::NestedNameSpecifier::Namespace, clang::NestedNameSpecifier::NamespaceAlias, clang::NestedNameSpecifier::Super, clang::NestedNameSpecifier::TypeSpec, and clang::NestedNameSpecifier::TypeSpecWithTemplate.

## ◆ AddOffset()

void clang::ASTRecordWriter::AddOffset | ( | uint64_t | BitOffset | ) |
| inline

Add a bit offset into the record.

This will be converted into an offset relative to the current record when emitted.

Definition at line 826 of file ASTWriter.h.

## ◆ AddPath()

void clang::ASTRecordWriter::AddPath | ( | StringRef | Path | ) |
| inline

Emit a path.

Definition at line 950 of file ASTWriter.h.

References clang::ASTWriter::AddPath().

## ◆ AddQualifierInfo()

void ASTRecordWriter::AddQualifierInfo | ( | const QualifierInfo & | Info | ) |

Definition at line 5700 of file ASTWriter.cpp.

References clang::QualifierInfo::NumTemplParamLists, clang::QualifierInfo::QualifierLoc, and clang::QualifierInfo::TemplParamLists.

## ◆ AddSelectorRef()

void ASTRecordWriter::AddSelectorRef | ( | Selector | S | ) |

Emit a Selector (which is a smart pointer reference).

Definition at line 5387 of file ASTWriter.cpp.

## ◆ AddSourceLocation()

void clang::ASTRecordWriter::AddSourceLocation | ( | SourceLocation | Loc | ) |
| inline

Emit a source location.

Definition at line 847 of file ASTWriter.h.

References clang::ASTWriter::AddSourceLocation().

Referenced by clang::ASTDeclWriter::AddObjCTypeParamList(), clang::ASTStmtWriter::AddTemplateKWAndArgsInfo(), and EmitCXXCtorInitializers().

## ◆ AddSourceRange()

void clang::ASTRecordWriter::AddSourceRange | ( | SourceRange | Range | ) |
| inline

Emit a source range.

Definition at line 852 of file ASTWriter.h.

References clang::ASTWriter::AddSourceRange().

## ◆ AddStmt()

void clang::ASTRecordWriter::AddStmt | ( | Stmt * | S | ) |
| inline

Add the given statement or expression to the queue of statements to emit.

This routine should be used when emitting types and declarations that have expressions as part of their formulation. Once the type or declaration has been written, Emit() will write the corresponding statements just after the record.

Definition at line 838 of file ASTWriter.h.

Referenced by addExceptionSpec(), and EmitCXXCtorInitializers().

## ◆ AddString()

void clang::ASTRecordWriter::AddString | ( | StringRef | Str | ) |
| inline

Emit a string.

Definition at line 945 of file ASTWriter.h.

References clang::ASTWriter::AddString().

## ◆ AddTemplateArgument()

void ASTRecordWriter::AddTemplateArgument | ( | const TemplateArgument & | Arg | ) |

Emit a template argument.

Definition at line 5860 of file ASTWriter.cpp.

References clang::ASTWriter::AddDeclRef(), clang::ASTWriter::AddTypeRef(), clang::TemplateArgument::Declaration, clang::TemplateArgument::Expression, clang::TemplateArgument::getAsDecl(), clang::TemplateArgument::getAsExpr(), clang::TemplateArgument::getAsIntegral(), clang::TemplateArgument::getAsTemplateOrTemplatePattern(), clang::TemplateArgument::getAsType(), clang::TemplateArgument::getIntegralType(), clang::TemplateArgument::getKind(), clang::TemplateArgument::getNullPtrType(), clang::TemplateArgument::getNumTemplateExpansions(), clang::TemplateArgument::getParamTypeForDecl(), clang::TemplateArgument::Integral, clang::TemplateArgument::Null, clang::TemplateArgument::NullPtr, P, clang::TemplateArgument::Pack, clang::TemplateArgument::pack_elements(), clang::TemplateArgument::pack_size(), clang::TemplateArgument::Template, clang::TemplateArgument::TemplateExpansion, and clang::TemplateArgument::Type.

## ◆ AddTemplateArgumentList()

void ASTRecordWriter::AddTemplateArgumentList | ( | const TemplateArgumentList * | TemplateArgs | ) |

Emit a template argument list.

Definition at line 5913 of file ASTWriter.cpp.

References clang::TemplateArgumentList::get(), and clang::TemplateArgumentList::size().

## ◆ AddTemplateArgumentLoc()

void ASTRecordWriter::AddTemplateArgumentLoc | ( | const TemplateArgumentLoc & | Arg | ) |

Emits a template argument location.

Definition at line 5442 of file ASTWriter.cpp.

References clang::TemplateArgument::Expression, clang::TemplateArgumentLoc::getArgument(), clang::TemplateArgument::getAsExpr(), clang::TemplateArgumentLocInfo::getAsExpr(), clang::TemplateArgument::getKind(), and clang::TemplateArgumentLoc::getLocInfo().

Referenced by clang::ASTStmtWriter::AddTemplateKWAndArgsInfo().

## ◆ AddTemplateArgumentLocInfo()

void ASTRecordWriter::AddTemplateArgumentLocInfo | ( | TemplateArgument::ArgKind | Kind,
|  | const TemplateArgumentLocInfo & | Arg
| ) |  |

Emits a template argument location info.

Definition at line 5414 of file ASTWriter.cpp.

References clang::ASTWriter::AddSourceLocation(), clang::TemplateArgument::Declaration, clang::TemplateArgument::Expression, clang::TemplateArgumentLocInfo::getAsExpr(), clang::TemplateArgumentLocInfo::getAsTypeSourceInfo(), clang::TemplateArgumentLocInfo::getTemplateEllipsisLoc(), clang::TemplateArgumentLocInfo::getTemplateNameLoc(), clang::TemplateArgumentLocInfo::getTemplateQualifierLoc(), clang::TemplateArgument::Integral, clang::TemplateArgument::Null, clang::TemplateArgument::NullPtr, clang::TemplateArgument::Pack, clang::TemplateArgument::Template, clang::TemplateArgument::TemplateExpansion, and clang::TemplateArgument::Type.

## ◆ AddTemplateName()

void ASTRecordWriter::AddTemplateName | ( | TemplateName | Name | ) |

Emit a template name.

Definition at line 5807 of file ASTWriter.cpp.

## ◆ AddTemplateParameterList()

void ASTRecordWriter::AddTemplateParameterList | ( | const TemplateParameterList * | TemplateParams | ) |

Emit a template parameter list.

Definition at line 5900 of file ASTWriter.cpp.

References clang::ASTWriter::AddDeclRef(), clang::ASTWriter::AddSourceLocation(), clang::TemplateParameterList::getLAngleLoc(), clang::TemplateParameterList::getRAngleLoc(), clang::TemplateParameterList::getTemplateLoc(), P, and clang::TemplateParameterList::size().

## ◆ AddTypeLoc()

void ASTRecordWriter::AddTypeLoc | ( | TypeLoc | TL | ) |

Emits source location information for a type. Does not emit the type.

Definition at line 5465 of file ASTWriter.cpp.

References clang::TypeLoc::getNextTypeLoc(), and clang::TypeLoc::isNull().

## ◆ AddTypeRef()

void clang::ASTRecordWriter::AddTypeRef | ( | QualType | T | ) |
| inline

Emit a reference to a type.

Definition at line 883 of file ASTWriter.h.

References clang::ASTWriter::AddTypeRef().

Referenced by addExceptionSpec(), and clang::ASTTypeWriter::Visit().

## ◆ AddTypeSourceInfo()

void ASTRecordWriter::AddTypeSourceInfo | ( | TypeSourceInfo * | TInfo | ) |

Emits a reference to a declarator info.

Definition at line 5455 of file ASTWriter.cpp.

References clang::ASTWriter::AddTypeRef(), clang::TypeSourceInfo::getType(), and clang::TypeSourceInfo::getTypeLoc().

Referenced by EmitCXXCtorInitializers().

## ◆ AddUnresolvedSet()

void ASTRecordWriter::AddUnresolvedSet | ( | const ASTUnresolvedSet & | Set | ) |

Emit a UnresolvedSet structure.

Definition at line 5932 of file ASTWriter.cpp.

References clang::ASTWriter::AddDeclRef(), clang::ASTUnresolvedSet::begin(), clang::ASTUnresolvedSet::end(), and clang::ASTUnresolvedSet::size().

## ◆ AddVersionTuple()

void clang::ASTRecordWriter::AddVersionTuple | ( | const VersionTuple & | Version | ) |
| inline

Emit a version tuple.

Definition at line 955 of file ASTWriter.h.

References clang::ASTWriter::AddVersionTuple().

## ◆ append()

template<typename InputIterator >

void clang::ASTRecordWriter::append | ( | InputIterator | begin,
|  | InputIterator | end
| ) |  |
| inline

Definition at line 797 of file ASTWriter.h.

Referenced by clang::ASTDeclWriter::AddTemplateSpecializations().

## ◆ Emit()

uint64_t clang::ASTRecordWriter::Emit | ( | unsigned | Code,
|  | unsigned | Abbrev = `0`
| ) |  |
| inline

Emit the record to the stream, followed by its substatements, and return its offset.

Definition at line 808 of file ASTWriter.h.

References Offset.

Referenced by clang::ASTDeclWriter::Emit(), clang::ASTTypeWriter::Emit(), EmitCXXBaseSpecifiers(), EmitCXXCtorInitializers(), and clang::ASTDeclWriter::VisitRedeclarable().

## ◆ EmitStmt()

uint64_t clang::ASTRecordWriter::EmitStmt | ( | unsigned | Code,
|  | unsigned | Abbrev = `0`
| ) |  |
| inline

Emit the record to the stream, preceded by its substatements.

Definition at line 817 of file ASTWriter.h.

Referenced by clang::ASTStmtWriter::Emit().

## ◆ empty()

bool clang::ASTRecordWriter::empty | ( |  | ) | const
| inline

Definition at line 800 of file ASTWriter.h.

## ◆ getRecordData()

ASTWriter::RecordDataImpl& clang::ASTRecordWriter::getRecordData | ( |  | ) | const
| inline

Extract the underlying record storage.

Definition at line 791 of file ASTWriter.h.

## ◆ operator=()

ASTRecordWriter& clang::ASTRecordWriter::operator= | ( | const ASTRecordWriter & |  | ) |
| delete

## ◆ operator[]()

uint64_t& clang::ASTRecordWriter::operator[] | ( | size_t | N | ) |
| inline

Definition at line 802 of file ASTWriter.h.

## ◆ push_back()

void clang::ASTRecordWriter::push_back | ( | uint64_t | N | ) |
| inline

Minimal vector-like interface.

Definition at line 795 of file ASTWriter.h.

Referenced by addExceptionSpec(), clang::ASTDeclWriter::AddObjCTypeParamList(), clang::ASTDeclWriter::AddTemplateSpecializations(), EmitCXXBaseSpecifiers(), EmitCXXCtorInitializers(), and clang::ASTTypeWriter::Visit().

## ◆ size()

size_t clang::ASTRecordWriter::size | ( |  | ) | const
| inline

Definition at line 801 of file ASTWriter.h.

Referenced by clang::ASTDeclWriter::AddTemplateSpecializations().

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

- include/clang/Serialization/ASTWriter.h
- lib/Serialization/ASTWriter.cpp
- lib/Serialization/ASTWriterDecl.cpp
- lib/Serialization/ASTWriterStmt.cpp