Home | History | Annotate | Download | only in Serialization

Lines Matching refs:ASTWriter

1 //===--- ASTWriter.cpp - AST File Writer ----------------------------------===//
10 // This file defines the ASTWriter class, which writes AST files.
14 #include "clang/Serialization/ASTWriter.h"
77 ASTWriter &Writer;
78 ASTWriter::RecordDataImpl &Record;
84 ASTTypeWriter(ASTWriter &Writer, ASTWriter::RecordDataImpl &Record)
419 ASTWriter &Writer;
420 ASTWriter::RecordDataImpl &Record;
423 TypeLocWriter(ASTWriter &Writer, ASTWriter::RecordDataImpl &Record)
637 // ASTWriter Implementation
642 ASTWriter::RecordDataImpl &Record) {
657 ASTWriter::RecordDataImpl &Record) {
666 ASTWriter::RecordDataImpl &Record) {
778 void ASTWriter::WriteBlockInfoBlock() {
1011 void ASTWriter::WriteControlBlock(Preprocessor &PP, ASTContext &Context,
1253 void ASTWriter::WriteInputFiles(SourceManager &SourceMgr,
1453 ASTWriter &Writer;
1461 HeaderFileInfoTrait(ASTWriter &Writer, const HeaderSearch &HS)
1552 void ASTWriter::WriteHeaderSearch(const HeaderSearch &HS, StringRef isysroot) {
1634 void ASTWriter::WriteSourceManagerBlock(SourceManager &SourceMgr,
1891 void ASTWriter::WritePreprocessor(const Preprocessor &PP, bool IsModule) {
2094 void ASTWriter::WritePreprocessorDetail(PreprocessingRecord &PPRec) {
2169 llvm_unreachable("Unhandled PreprocessedEntity in ASTWriter");
2193 unsigned ASTWriter::getSubmoduleID(Module *Mod) {
2201 unsigned ASTWriter::getExistingSubmoduleID(Module *Mod) const {
2225 void ASTWriter::WriteSubmodules(Module *WritingModule) {
2467 ASTWriter::inferSubmoduleIDFromLocation(SourceLocation Loc) {
2485 void ASTWriter::WritePragmaDiagnosticMappings(const DiagnosticsEngine &Diag,
2527 void ASTWriter::WriteCXXBaseSpecifiersOffsets() {
2555 void ASTWriter::WriteType(QualType T) {
2608 uint64_t ASTWriter::WriteDeclContextLexicalBlock(ASTContext &Context,
2626 void ASTWriter::WriteTypeDeclOffsets() {
2657 void ASTWriter::WriteFileDeclIDsMap() {
2682 void ASTWriter::WriteComments() {
2706 ASTWriter &Writer;
2718 explicit ASTMethodPoolTrait(ASTWriter &Writer) : Writer(Writer) { }
2799 void ASTWriter::WriteSelectors(Sema &SemaRef) {
2897 void ASTWriter::WriteReferencedSelectorsPool(Sema &SemaRef) {
2924 ASTWriter &Writer;
3045 ASTIdentifierTableTrait(ASTWriter &Writer, Preprocessor &PP,
3175 void ASTWriter::WriteIdentifierTable(Preprocessor &PP,
3262 ASTWriter &Writer;
3271 explicit ASTDeclContextNameLookupTrait(ASTWriter &Writer) : Writer(Writer) { }
3381 uint64_t ASTWriter::WriteDeclContextVisibleBlock(ASTContext &Context,
3469 void ASTWriter::WriteDeclContextVisibleUpdate(const DeclContext *DC) {
3507 void ASTWriter::WriteFPPragmaOptions(const FPOptions &Opts) {
3514 void ASTWriter::WriteOpenCLExtensions(Sema &SemaRef) {
3525 void ASTWriter::WriteRedeclarations() {
3604 void ASTWriter::WriteObjCCategories() {
3657 void ASTWriter::WriteMergedDecls() {
3681 void ASTWriter::WriteAttributes(ArrayRef<const Attr*> Attrs,
3695 void ASTWriter::AddToken(const Token &Tok, RecordDataImpl &Record) {
3708 void ASTWriter::AddString(StringRef Str, RecordDataImpl &Record) {
3713 void ASTWriter::AddVersionTuple(const VersionTuple &Version,
3728 void ASTWriter::SetIdentifierOffset(const IdentifierInfo *II, uint32_t Offset) {
3738 void ASTWriter::SetSelectorOffset(Selector Sel, uint32_t Offset) {
3748 ASTWriter::ASTWriter(llvm::BitstreamWriter &Stream)
3773 ASTWriter::~ASTWriter() {
3779 void ASTWriter::WriteAST(Sema &SemaRef,
3807 static void AddLazyVectorDecls(ASTWriter &Writer, Vector &Vec,
3808 ASTWriter::RecordData &Record) {
3815 void ASTWriter::WriteASTCore(Sema &SemaRef,
4035 ASTWriter::UpdateRecord &Record = DeclUpdates[TU];
4271 void ASTWriter::ResolveDeclUpdatesBlocks() {
4304 void ASTWriter::WriteDeclUpdatesBlocks() {
4328 void ASTWriter::WriteDeclReplacementsBlock() {
4342 void ASTWriter::AddSourceLocation(SourceLocation Loc, RecordDataImpl &Record) {
4346 void ASTWriter::AddSourceRange(SourceRange Range, RecordDataImpl &Record) {
4351 void ASTWriter::AddAPInt(const llvm::APInt &Value, RecordDataImpl &Record) {
4357 void ASTWriter::AddAPSInt(const llvm::APSInt &Value, RecordDataImpl &Record) {
4362 void ASTWriter::AddAPFloat(const llvm::APFloat &Value, RecordDataImpl &Record) {
4366 void ASTWriter::AddIdentifierRef(const IdentifierInfo *II, RecordDataImpl &Record) {
4370 IdentID ASTWriter::getIdentifierRef(const IdentifierInfo *II) {
4380 MacroID ASTWriter::getMacroRef(MacroInfo *MI, const IdentifierInfo *Name) {
4396 MacroID ASTWriter::getMacroID(MacroInfo *MI) {
4404 uint64_t ASTWriter::getMacroDirectivesOffset(const IdentifierInfo *Name) {
4409 void ASTWriter::AddSelectorRef(const Selector SelRef, RecordDataImpl &Record) {
4413 SelectorID ASTWriter::getSelectorRef(Selector Sel) {
4432 void ASTWriter::AddCXXTemporary(const CXXTemporary *Temp, RecordDataImpl &Record) {
4436 void ASTWriter::AddCXXBaseSpecifiersRef(CXXBaseSpecifier const *Bases,
4446 void ASTWriter::AddTemplateArgumentLocInfo(TemplateArgument::ArgKind Kind,
4475 void ASTWriter::AddTemplateArgumentLoc(const TemplateArgumentLoc &Arg,
4490 void ASTWriter::AddTypeSourceInfo(TypeSourceInfo *TInfo,
4500 void ASTWriter::AddTypeLoc(TypeLoc TL, RecordDataImpl &Record) {
4508 void ASTWriter::AddTypeRef(QualType T, RecordDataImpl &Record) {
4512 TypeID ASTWriter::GetOrCreateTypeID( QualType T) {
4515 std::bind1st(std::mem_fun(&ASTWriter::GetOrCreateTypeIdx), this));
4518 TypeID ASTWriter::getTypeID(QualType T) const {
4521 std::bind1st(std::mem_fun(&ASTWriter::getTypeIdx), this));
4524 TypeIdx ASTWriter::GetOrCreateTypeIdx(QualType T) {
4544 TypeIdx ASTWriter::getTypeIdx(QualType T) const {
4554 void ASTWriter::AddDeclRef(const Decl *D, RecordDataImpl &Record) {
4558 DeclID ASTWriter::GetDeclRef(const Decl *D) {
4587 DeclID ASTWriter::getDeclID(const Decl *D) {
4605 void ASTWriter::associateDeclWithFile(const Decl *D, DeclID ID) {
4649 void ASTWriter::AddDeclarationName(DeclarationName Name, RecordDataImpl &Record) {
4683 void ASTWriter::AddDeclarationNameLoc(const DeclarationNameLoc &DNLoc,
4716 void ASTWriter::AddDeclarationNameInfo(const DeclarationNameInfo &NameInfo,
4723 void ASTWriter::AddQualifierInfo(const QualifierInfo &Info,
4731 void ASTWriter::AddNestedNameSpecifier(NestedNameSpecifier *NNS,
4774 void ASTWriter::AddNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS,
4823 void ASTWriter::AddTemplateName(TemplateName Name, RecordDataImpl &Record) {
4877 void ASTWriter::AddTemplateArgument(const TemplateArgument &Arg,
4920 ASTWriter::AddTemplateParameterList(const TemplateParameterList *TemplateParams,
4935 ASTWriter::AddTemplateArgumentList(const TemplateArgumentList *TemplateArgs,
4945 ASTWriter::AddUnresolvedSet(const ASTUnresolvedSet &Set, RecordDataImpl &Record) {
4954 void ASTWriter::AddCXXBaseSpecifier(const CXXBaseSpecifier &Base,
4967 void ASTWriter::FlushCXXBaseSpecifiers() {
4996 void ASTWriter::AddCXXCtorInitializers(
5034 void ASTWriter::AddCXXDefinitionData(const CXXRecordDecl *D, RecordDataImpl &Record) {
5129 void ASTWriter::ReaderInitialized(ASTReader *Reader) {
5156 void ASTWriter::IdentifierRead(IdentID ID, IdentifierInfo *II) {
5163 void ASTWriter::MacroRead(serialization::MacroID ID, MacroInfo *MI) {
5170 void ASTWriter::TypeRead(TypeIdx Idx, QualType T) {
5181 void ASTWriter::SelectorRead(SelectorID ID, Selector S) {
5188 void ASTWriter::MacroDefinitionRead(serialization::PreprocessedEntityID ID,
5194 void ASTWriter::ModuleRead(serialization::SubmoduleID ID, Module *Mod) {
5199 void ASTWriter::CompletedTagDefinition(const TagDecl *D) {
5213 void ASTWriter::AddedVisibleDecl(const DeclContext *DC, const Decl *D) {
5228 void ASTWriter::AddedCXXImplicitMember(const CXXRecordDecl *RD, const Decl *D) {
5243 void ASTWriter::AddedCXXTemplateSpecialization(const ClassTemplateDecl *TD,
5256 void ASTWriter::AddedCXXTemplateSpecialization(
5269 void ASTWriter::AddedCXXTemplateSpecialization(const FunctionTemplateDecl *TD,
5282 void ASTWriter::DeducedReturnType(const FunctionDecl *FD, QualType ReturnType) {
5293 void ASTWriter::CompletedImplicitDefinition(const FunctionDecl *D) {
5303 void ASTWriter::StaticDataMemberInstantiated(const VarDecl *D) {
5316 void ASTWriter::AddedObjCCategoryToInterface(const ObjCCategoryDecl *CatD,
5328 void ASTWriter::AddedObjCPropertyInClassExtension(const ObjCPropertyDecl *Prop,