From 831c93f6c08b0111e9a185058e67cdc3e88bd1ab Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 5 Nov 2008 20:51:48 +0000 Subject: Parsing, representation, and preliminary semantic analysis of destructors. Implicit declaration of destructors (when necessary). Extended Declarator to store information about parsed constructors and destructors; this will be extended to deal with declarators that name overloaded operators (e.g., "operator +") and user-defined conversion operators (e.g., "operator int"). llvm-svn: 58767 --- clang/lib/Sema/Sema.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'clang/lib/Sema/Sema.h') diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h index d14c5ffa200..68d2eeefc50 100644 --- a/clang/lib/Sema/Sema.h +++ b/clang/lib/Sema/Sema.h @@ -836,7 +836,13 @@ public: virtual void ActOnFinishCXXClassDef(DeclTy *TagDecl); - virtual DeclTy *ActOnConstructorDeclarator(CXXConstructorDecl *ConDecl); + + bool CheckConstructorDeclarator(Declarator &D, QualType &R, + FunctionDecl::StorageClass& SC); + bool CheckDestructorDeclarator(Declarator &D, QualType &R, + FunctionDecl::StorageClass& SC); + DeclTy *ActOnConstructorDeclarator(CXXConstructorDecl *Constructor); + DeclTy *ActOnDestructorDeclarator(CXXDestructorDecl *Destructor); //===--------------------------------------------------------------------===// // C++ Derived Classes -- cgit v1.2.3