]> granicus.if.org Git - clang/commit
[objc] If an interface has no initializer marked as designated and introduces at...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 5 Dec 2013 07:07:03 +0000 (07:07 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 5 Dec 2013 07:07:03 +0000 (07:07 +0000)
commitdc64a7e06fc52cee83ee2bf0eeaeaf74e552b22d
treecbabb8194f9d27c1f948a00934f4ae1e6d405c7a
parent2b01e1e26da79a67a248565a189287192b3757f0
[objc] If an interface has no initializer marked as designated and introduces at least one new initializer,
don't assume that it inherits the designated initializers from the super class.

If the assumption was wrong because a new initializer was a designated one that was not marked as such,
we will emit misleading warnings for subclasses of the interface.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196476 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/DeclObjC.h
lib/AST/DeclObjC.cpp
test/SemaObjC/attr-designated-init.m