diff options
author | Ted Kremenek <kremenek@apple.com> | 2013-04-06 00:34:27 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2013-04-06 00:34:27 +0000 |
commit | b54457242c1cb772cb40645b4cd553ce38aeb2dc (patch) | |
tree | 66b9751955f33652e59dbf44809412d97c3def6c /clang/test/CodeGenCXX/cxx0x-initializer-stdinitializerlist.cpp | |
parent | f1ff3bb6806159d802948596612975cf6b730178 (diff) | |
download | bcm5719-llvm-b54457242c1cb772cb40645b4cd553ce38aeb2dc.tar.gz bcm5719-llvm-b54457242c1cb772cb40645b4cd553ce38aeb2dc.zip |
Rework how ObjC method inherit deprecated/availability.
New rule:
- Method decls in @implementation are considered "redeclarations"
and inherit deprecated/availability from the @interface.
- All other cases are consider overrides, which do not inherit
deprecated/availability. For example:
(a) @interface redeclares a method in an adopted protocol.
(b) A subclass redeclares a method in a superclass.
(c) A protocol redeclares a method from another protocol it adopts.
The idea is that API authors should have the ability to easily
move availability/deprecated up and down a class/protocol hierarchy.
A redeclaration means that the availability/deprecation is a blank
slate.
Fixes <rdar://problem/13574571>
llvm-svn: 178937
Diffstat (limited to 'clang/test/CodeGenCXX/cxx0x-initializer-stdinitializerlist.cpp')
0 files changed, 0 insertions, 0 deletions