]> granicus.if.org Git - clang/commit
Declare and define implicit move constructor and assignment operator.
authorSebastian Redl <sebastian.redl@getdesigned.at>
Tue, 30 Aug 2011 19:58:05 +0000 (19:58 +0000)
committerSebastian Redl <sebastian.redl@getdesigned.at>
Tue, 30 Aug 2011 19:58:05 +0000 (19:58 +0000)
commit85ea7aa961deac1d754f610af8062ae3f8b4e2a5
treed780103715ecc52cfee9c776ca760dc9818b0268
parent955fadbdfecfa24a590febe66a86519096787f2d
Declare and define implicit move constructor and assignment operator.

This makes the code duplication of implicit special member handling even worse,
but the cleanup will have to come later. For now, this works.
Follow-up with tests for explicit defaulting and enabling the __has_feature
flag to come.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138821 91177308-0d34-0410-b5e6-96231b3b80d8
21 files changed:
include/clang/AST/DeclCXX.h
include/clang/AST/Type.h
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/Sema.h
lib/AST/DeclCXX.cpp
lib/AST/ExprClassification.cpp
lib/AST/Type.cpp
lib/CodeGen/CGClass.cpp
lib/CodeGen/CGExprCXX.cpp
lib/CodeGen/CGExprConstant.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaLookup.cpp
test/CXX/dcl.decl/dcl.init/p14-0x.cpp
test/CXX/special/class.copy/implicit-move-def.cpp [new file with mode: 0644]
test/CXX/special/class.copy/implicit-move.cpp [new file with mode: 0644]
test/CXX/special/class.inhctor/p3.cpp
test/CXX/stmt.stmt/stmt.iter/stmt.ranged/p1.cpp
test/CXX/temp/temp.decls/temp.variadic/p4.cpp
test/SemaCXX/cast-conversion.cpp
test/SemaCXX/explicit.cpp