diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-11-09 01:05:47 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-11-09 01:05:47 +0000 |
commit | 49c16da71b9c95cc53b4af6de2833a022cb69b6a (patch) | |
tree | a23a96e60a913aeb5abc11df742f7f71732ad090 /lib/Sema/Sema.h | |
parent | a8ce9ecae8670fe8e189755b14d73fd84087e51f (diff) |
Unify the codepaths used to verify base and member initializers for explicitly
and implicitly defined constructors. This has a number of benefits:
1. Less code.
2. Explicit and implicit constructors get the same diagnostics.
3. The AST explicitly contains constructor calls from implicit default
constructors. This allows handing some cases that previously weren't handled
correctly in IRGen without any additional code. Specifically, implicit default
constructors containing calls to constructors with default arguments are now
handled correctly.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86500 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/Sema.h')
-rw-r--r-- | lib/Sema/Sema.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/Sema/Sema.h b/lib/Sema/Sema.h index bfef9a3985..b21315bf0e 100644 --- a/lib/Sema/Sema.h +++ b/lib/Sema/Sema.h @@ -1747,11 +1747,6 @@ public: const FunctionProtoType *Proto, Expr **Args, unsigned NumArgs, SourceLocation RParenLoc); - void BuildBaseOrMemberInitializers(ASTContext &C, - CXXConstructorDecl *Constructor, - CXXBaseOrMemberInitializer **Initializers, - unsigned NumInitializers - ); void DeconstructCallFunction(Expr *FnExpr, NamedDecl *&Function, @@ -2280,8 +2275,7 @@ public: void SetBaseOrMemberInitializers(CXXConstructorDecl *Constructor, CXXBaseOrMemberInitializer **Initializers, unsigned NumInitializers, - llvm::SmallVectorImpl<CXXBaseSpecifier *>& Bases, - llvm::SmallVectorImpl<FieldDecl *>&Members); + bool IsImplicitConstructor); /// computeBaseOrMembersToDestroy - Compute information in current /// destructor decl's AST of bases and non-static data members which will be |