Home | History | Annotate | Download | only in Serialization

Lines Matching defs:ASTWriter

1 //===--- ASTWriter.cpp - AST File Writer ----------------------------------===//
10 // This file defines the ASTWriter class, which writes AST files.
14 #include "clang/Serialization/ASTWriter.h"
80 ASTWriter &Writer;
81 ASTWriter::RecordDataImpl &Record;
87 ASTTypeWriter(ASTWriter &Writer, ASTWriter::RecordDataImpl &Record)
200 static void addExceptionSpec(ASTWriter &Writer, const FunctionProtoType *T,
201 ASTWriter::RecordDataImpl &Record) {
432 ASTWriter &Writer;
433 ASTWriter::RecordDataImpl &Record;
436 TypeLocWriter(ASTWriter &Writer, ASTWriter::RecordDataImpl &Record)
653 // ASTWriter Implementation
658 ASTWriter::RecordDataImpl &Record) {
674 ASTWriter::RecordDataImpl &Record) {
683 ASTWriter::RecordDataImpl &Record) {
793 void ASTWriter::WriteBlockInfoBlock() {
1030 void ASTWriter::WriteControlBlock(Preprocessor &PP, ASTContext &Context,
1295 void ASTWriter::WriteInputFiles(SourceManager &SourceMgr,
1468 ASTWriter &Writer;
1476 HeaderFileInfoTrait(ASTWriter &Writer, const HeaderSearch &HS)
1574 void ASTWriter::WriteHeaderSearch(const HeaderSearch &HS, StringRef isysroot) {
1657 void ASTWriter::WriteSourceManagerBlock(SourceManager &SourceMgr,
1916 void ASTWriter::WritePreprocessor(const Preprocessor &PP, bool IsModule) {
2119 void ASTWriter::WritePreprocessorDetail(PreprocessingRecord &PPRec) {
2194 llvm_unreachable("Unhandled PreprocessedEntity in ASTWriter");
2218 unsigned ASTWriter::getSubmoduleID(Module *Mod) {
2226 unsigned ASTWriter::getExistingSubmoduleID(Module *Mod) const {
2250 void ASTWriter::WriteSubmodules(Module *WritingModule) {
2497 ASTWriter::inferSubmoduleIDFromLocation(SourceLocation Loc) {
2515 void ASTWriter::WritePragmaDiagnosticMappings(const DiagnosticsEngine &Diag,
2557 void ASTWriter::WriteCXXBaseSpecifiersOffsets() {
2585 void ASTWriter::WriteType(QualType T) {
2638 uint64_t ASTWriter::WriteDeclContextLexicalBlock(ASTContext &Context,
2655 void ASTWriter::WriteTypeDeclOffsets() {
2686 void ASTWriter::WriteFileDeclIDsMap() {
2711 void ASTWriter::WriteComments() {
2735 ASTWriter &Writer;
2750 explicit ASTMethodPoolTrait(ASTWriter &Writer) : Writer(Writer) { }
2837 void ASTWriter::WriteSelectors(Sema &SemaRef) {
2936 void ASTWriter::WriteReferencedSelectorsPool(Sema &SemaRef) {
2963 ASTWriter &Writer;
3105 ASTIdentifierTableTrait(ASTWriter &Writer, Preprocessor &PP,
3267 void ASTWriter::WriteIdentifierTable(Preprocessor &PP,
3355 ASTWriter &Writer;
3367 explicit ASTDeclContextNameLookupTrait(ASTWriter &Writer) : Writer(Writer) { }
3508 void ASTWriter::AddUpdatedDeclContext(const DeclContext *DC) {
3521 ASTWriter::GenerateNameLookupTable(const DeclContext *DC,
3596 uint64_t ASTWriter::WriteDeclContextVisibleBlock(ASTContext &Context,
3643 void ASTWriter::WriteDeclContextVisibleUpdate(const DeclContext *DC) {
3661 void ASTWriter::WriteFPPragmaOptions(const FPOptions &Opts) {
3668 void ASTWriter::WriteOpenCLExtensions(Sema &SemaRef) {
3679 void ASTWriter::WriteRedeclarations() {
3758 void ASTWriter::WriteObjCCategories() {
3811 void ASTWriter::WriteMergedDecls() {
3830 void ASTWriter::WriteLateParsedTemplates(Sema &SemaRef) {
3855 void ASTWriter::WriteOptimizePragmaOptions(Sema &SemaRef) {
3867 void ASTWriter::WriteAttributes(ArrayRef<const Attr*> Attrs,
3881 void ASTWriter::AddToken(const Token &Tok, RecordDataImpl &Record) {
3894 void ASTWriter::AddString(StringRef Str, RecordDataImpl &Record) {
3899 void ASTWriter::AddVersionTuple(const VersionTuple &Version,
3914 void ASTWriter::SetIdentifierOffset(const IdentifierInfo *II, uint32_t Offset) {
3924 void ASTWriter::SetSelectorOffset(Selector Sel, uint32_t Offset) {
3934 ASTWriter::ASTWriter(llvm::BitstreamWriter &Stream)
3959 ASTWriter::~ASTWriter() {
3963 void ASTWriter::WriteAST(Sema &SemaRef,
3991 static void AddLazyVectorDecls(ASTWriter &Writer, Vector &Vec,
3992 ASTWriter::RecordData &Record) {
3999 void ASTWriter::WriteASTCore(Sema &SemaRef,
4227 ASTWriter::UpdateRecord &Record = DeclUpdates[TU];
4491 void ASTWriter::WriteDeclUpdatesBlocks(RecordDataImpl &OffsetsRecord) {
4616 void ASTWriter::WriteDeclReplacementsBlock() {
4630 void ASTWriter::AddSourceLocation(SourceLocation Loc, RecordDataImpl &Record) {
4634 void ASTWriter::AddSourceRange(SourceRange Range, RecordDataImpl &Record) {
4639 void ASTWriter::AddAPInt(const llvm::APInt &Value, RecordDataImpl &Record) {
4645 void ASTWriter::AddAPSInt(const llvm::APSInt &Value, RecordDataImpl &Record) {
4650 void ASTWriter::AddAPFloat(const llvm::APFloat &Value, RecordDataImpl &Record) {
4654 void ASTWriter::AddIdentifierRef(const IdentifierInfo *II, RecordDataImpl &Record) {
4658 IdentID ASTWriter::getIdentifierRef(const IdentifierInfo *II) {
4668 MacroID ASTWriter::getMacroRef(MacroInfo *MI, const IdentifierInfo *Name) {
4684 MacroID ASTWriter::getMacroID(MacroInfo *MI) {
4692 uint64_t ASTWriter::getMacroDirectivesOffset(const IdentifierInfo *Name) {
4697 void ASTWriter::AddSelectorRef(const Selector SelRef, RecordDataImpl &Record) {
4701 SelectorID ASTWriter::getSelectorRef(Selector Sel) {
4720 void ASTWriter::AddCXXTemporary(const CXXTemporary *Temp, RecordDataImpl &Record) {
4724 void ASTWriter::AddCXXBaseSpecifiersRef(CXXBaseSpecifier const *Bases,
4734 void ASTWriter::AddTemplateArgumentLocInfo(TemplateArgument::ArgKind Kind,
4763 void ASTWriter::AddTemplateArgumentLoc(const TemplateArgumentLoc &Arg,
4778 void ASTWriter::AddTypeSourceInfo(TypeSourceInfo *TInfo,
4788 void ASTWriter::AddTypeLoc(TypeLoc TL, RecordDataImpl &Record) {
4796 void ASTWriter::AddTypeRef(QualType T, RecordDataImpl &Record) {
4800 TypeID ASTWriter::GetOrCreateTypeID( QualType T) {
4803 std::bind1st(std::mem_fun(&ASTWriter::GetOrCreateTypeIdx), this));
4806 TypeID ASTWriter::getTypeID(QualType T) const {
4809 std::bind1st(std::mem_fun(&ASTWriter::getTypeIdx), this));
4812 TypeIdx ASTWriter::GetOrCreateTypeIdx(QualType T) {
4832 TypeIdx ASTWriter::getTypeIdx(QualType T) const {
4842 void ASTWriter::AddDeclRef(const Decl *D, RecordDataImpl &Record) {
4846 DeclID ASTWriter::GetDeclRef(const Decl *D) {
4875 DeclID ASTWriter::getDeclID(const Decl *D) {
4888 void ASTWriter
4932 void ASTWriter::AddDeclarationName(DeclarationName Name, RecordDataImpl &Record) {
4966 void ASTWriter::AddDeclarationNameLoc(const DeclarationNameLoc &DNLoc,
4999 void ASTWriter::AddDeclarationNameInfo(const DeclarationNameInfo &NameInfo,
5006 void ASTWriter::AddQualifierInfo(const QualifierInfo &Info,
5014 void ASTWriter::AddNestedNameSpecifier(NestedNameSpecifier *NNS,
5057 void ASTWriter::AddNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS,
5106 void ASTWriter::AddTemplateName(TemplateName Name, RecordDataImpl &Record) {
5160 void ASTWriter::AddTemplateArgument(const TemplateArgument &Arg,
5203 ASTWriter::AddTemplateParameterList(const TemplateParameterList *TemplateParams,
5218 ASTWriter::AddTemplateArgumentList(const TemplateArgumentList *TemplateArgs,
5227 ASTWriter::AddASTTemplateArgumentListInfo
5239 ASTWriter::AddUnresolvedSet(const ASTUnresolvedSet &Set, RecordDataImpl &Record) {
5248 void ASTWriter::AddCXXBaseSpecifier(const CXXBaseSpecifier &Base,
5261 void ASTWriter::FlushCXXBaseSpecifiers() {
5290 void ASTWriter::AddCXXCtorInitializers(
5328 void ASTWriter::AddCXXDefinitionData(const CXXRecordDecl *D, RecordDataImpl &Record) {
5419 void ASTWriter::ReaderInitialized(ASTReader *Reader) {
5446 void ASTWriter::IdentifierRead(IdentID ID, IdentifierInfo *II) {
5453 void ASTWriter::MacroRead(serialization::MacroID ID, MacroInfo *MI) {
5460 void ASTWriter::TypeRead(TypeIdx Idx, QualType T) {
5471 void ASTWriter::SelectorRead(SelectorID ID, Selector S) {
5478 void ASTWriter::MacroDefinitionRead(serialization::PreprocessedEntityID ID,
5484 void ASTWriter::ModuleRead(serialization::SubmoduleID ID, Module *Mod) {
5489 void ASTWriter::CompletedTagDefinition(const TagDecl *D) {
5506 void ASTWriter::AddedVisibleDecl(const DeclContext *DC, const Decl *D) {
5521 void ASTWriter::AddedCXXImplicitMember(const CXXRecordDecl *RD, const Decl *D) {
5534 void ASTWriter::AddedCXXTemplateSpecialization(const ClassTemplateDecl *TD,
5546 void ASTWriter::AddedCXXTemplateSpecialization(
5558 void ASTWriter::AddedCXXTemplateSpecialization(const FunctionTemplateDecl *TD,
5570 void ASTWriter::ResolvedExceptionSpec(const FunctionDecl *FD) {
5579 void ASTWriter::DeducedReturnType(const FunctionDecl *FD, QualType ReturnType) {
5588 void ASTWriter::CompletedImplicitDefinition(const FunctionDecl *D) {
5598 void ASTWriter::FunctionDefinitionInstantiated(const FunctionDecl *D) {
5609 void ASTWriter::StaticDataMemberInstantiated(const VarDecl *D) {
5621 void ASTWriter::AddedObjCCategoryToInterface(const ObjCCategoryDecl *CatD,
5633 void ASTWriter::AddedObjCPropertyInClassExtension(const ObjCPropertyDecl *Prop,
5647 void ASTWriter::DeclarationMarkedUsed(const Decl *D) {