[Sema] Check availability of ObjC super class and protocols of a container
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sun, 19 Apr 2015 20:15:55 +0000 (20:15 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sun, 19 Apr 2015 20:15:55 +0000 (20:15 +0000)
commit4ecdd2cff3f9fbb91d145029fb6d57ecb941b008
treea669399bb843d128c47138f22168a8d4ebc50281
parent8902e530bc307dd8435ec904f48589c4101a58cd
[Sema] Check availability of ObjC super class and protocols of a container
in the context of the container itself.

Otherwise we will emit 'unavailable' errors when referencing an unavailable super class
even though the subclass is also marked 'unavailable'.

rdar://20598702

llvm-svn: 235276
clang/include/clang/Parse/Parser.h
clang/include/clang/Sema/Sema.h
clang/lib/Parse/ParseObjc.cpp
clang/lib/Sema/SemaDeclObjC.cpp
clang/test/SemaObjC/class-unavail-warning.m