]> granicus.if.org Git - clang/commit
Place constructors and destructors into the DeclContext of the class,
authorDouglas Gregor <dgregor@apple.com>
Mon, 15 Dec 2008 21:24:18 +0000 (21:24 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 15 Dec 2008 21:24:18 +0000 (21:24 +0000)
commit9e7d9de3ef538c1473248238b76a6d7b16f5f684
tree272828d09e3dd9dfbcbd05538158ee64fa7312fe
parent9fed5169477cfca54e97069bca035f6453b1ab84
Place constructors and destructors into the DeclContext of the class,
just like all other members, and remove the special variables in
CXXRecordDecl to store them. This eliminates a lot of special-case
code for constructors and destructors, including
ActOnConstructor/ActOnDeclarator and special lookup rules in
LookupDecl. The result is far more uniform and manageable.

Diagnose the redeclaration of member functions.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61048 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/DeclCXX.h
include/clang/Basic/DiagnosticKinds.def
lib/AST/DeclCXX.cpp
lib/Sema/Sema.h
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaOverload.cpp
test/SemaCXX/constructor.cpp
test/SemaCXX/overload-decl.cpp