]> granicus.if.org Git - clang/commit
[ObjC] Follow-up r350768 and allow the use of unavailable methods that are
authorAlex Lorenz <arphaman@gmail.com>
Thu, 17 Jan 2019 18:12:45 +0000 (18:12 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Thu, 17 Jan 2019 18:12:45 +0000 (18:12 +0000)
commitf812df94335cccf585168fcda36d6b683b625640
treec584fb7fab46f14e10da634087a1c06e4cc82e2a
parenta49effd0c243838066354b9f0546b6e36dbc2f7a
[ObjC] Follow-up r350768 and allow the use of unavailable methods that are
declared in a parent class from within the @implementation context

This commit extends r350768 and allows the use of methods marked as unavailable
that are declared in a parent class/category from within the @implementation of
the class where the method is marked as unavailable.
This allows users to call init that's marked as unavailable even if they don't
define it.

rdar://47134898

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@351459 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclAttr.cpp
test/SemaObjC/call-unavailable-init-in-self.m
test/SemaObjC/infer-availability-from-init.m