diff options
Diffstat (limited to 'clang/include')
| -rw-r--r-- | clang/include/clang/AST/Decl.h | 2 | ||||
| -rw-r--r-- | clang/include/clang/AST/DeclCXX.h | 1 | ||||
| -rw-r--r-- | clang/include/clang/AST/DeclTemplate.h | 7 |
3 files changed, 7 insertions, 3 deletions
diff --git a/clang/include/clang/AST/Decl.h b/clang/include/clang/AST/Decl.h index 187b88d8364..da7ad1d2170 100644 --- a/clang/include/clang/AST/Decl.h +++ b/clang/include/clang/AST/Decl.h @@ -1993,6 +1993,7 @@ public: static EnumDecl *Create(ASTContext &C, DeclContext *DC, SourceLocation L, IdentifierInfo *Id, SourceLocation TKL, EnumDecl *PrevDecl); + static EnumDecl *Create(ASTContext &C, EmptyShell Empty); virtual void Destroy(ASTContext& C); @@ -2110,6 +2111,7 @@ public: SourceLocation L, IdentifierInfo *Id, SourceLocation TKL = SourceLocation(), RecordDecl* PrevDecl = 0); + static RecordDecl *Create(ASTContext &C, EmptyShell Empty); virtual void Destroy(ASTContext& C); diff --git a/clang/include/clang/AST/DeclCXX.h b/clang/include/clang/AST/DeclCXX.h index a543cf0d5ba..63002913ebe 100644 --- a/clang/include/clang/AST/DeclCXX.h +++ b/clang/include/clang/AST/DeclCXX.h @@ -427,6 +427,7 @@ public: SourceLocation TKL = SourceLocation(), CXXRecordDecl* PrevDecl=0, bool DelayTypeCreation = false); + static CXXRecordDecl *Create(ASTContext &C, EmptyShell Empty); virtual void Destroy(ASTContext& C); diff --git a/clang/include/clang/AST/DeclTemplate.h b/clang/include/clang/AST/DeclTemplate.h index 05bad9303d7..84e755302af 100644 --- a/clang/include/clang/AST/DeclTemplate.h +++ b/clang/include/clang/AST/DeclTemplate.h @@ -703,6 +703,7 @@ public: SourceLocation L, unsigned D, unsigned P, IdentifierInfo *Id, bool Typename, bool ParameterPack); + static TemplateTypeParmDecl *Create(ASTContext &C, EmptyShell Empty); /// \brief Whether this template type parameter was declared with /// the 'typename' keyword. If not, it was declared with the 'class' @@ -980,8 +981,8 @@ public: ClassTemplateDecl *SpecializedTemplate, TemplateArgumentListBuilder &Builder, ClassTemplateSpecializationDecl *PrevDecl); - - static ClassTemplateSpecializationDecl *CreateEmpty(ASTContext &Context); + static ClassTemplateSpecializationDecl * + Create(ASTContext &Context, EmptyShell Empty); virtual void Destroy(ASTContext& C); @@ -1230,7 +1231,7 @@ public: unsigned SequenceNumber); static ClassTemplatePartialSpecializationDecl * - CreateEmpty(ASTContext &Context); + Create(ASTContext &Context, EmptyShell Empty); /// Get the list of template parameters TemplateParameterList *getTemplateParameters() const { |

