]> granicus.if.org Git - clang/commit
[Sema][ObjC] Allow declaring ObjC pointer members with non-trivial
authorAkira Hatanaka <ahatanaka@apple.com>
Sat, 2 Feb 2019 02:23:40 +0000 (02:23 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Sat, 2 Feb 2019 02:23:40 +0000 (02:23 +0000)
commit44d861c1f7099970b74af95998dc36e99eeb1f08
treec96c309eb60ce104c1302ec4b176f9ad59830ca2
parentbf227b325033ff88703eab59611361f94b61d122
[Sema][ObjC] Allow declaring ObjC pointer members with non-trivial
ownership qualifications in C++ unions under ARC.

An ObjC pointer member with non-trivial ownership qualifications causes
all of the defaulted special functions of the enclosing union to be
defined as deleted, except when the member has an in-class initializer,
the default constructor isn't defined as deleted.

rdar://problem/34213306

Differential Revision: https://reviews.llvm.org/D57438

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@352949 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/AST/DeclCXX.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclCXX.cpp
test/SemaObjCXX/arc-0x.mm
test/SemaObjCXX/objc-weak.mm