[PATCH] D102459: [clang][ObjC] Allow different availability annotation on a method when implementing an optional protocol requirement

Alex Lorenz via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 14 12:37:07 PDT 2021


arphaman updated this revision to Diff 345529.
arphaman added a comment.

Do not apply this to 'deprecated' availability annotations - the user has no way to check for deprecated as `respondsToSelector` will still return true even if the class has marked the method as deprecated.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102459/new/

https://reviews.llvm.org/D102459

Files:
  clang/include/clang/Sema/Sema.h
  clang/lib/Sema/SemaDecl.cpp
  clang/lib/Sema/SemaDeclAttr.cpp
  clang/test/SemaObjC/attr-availability.m
  clang/test/SemaObjC/override-opt-prop-availability.m

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102459.345529.patch
Type: text/x-patch
Size: 7716 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210514/d91d4d62/attachment-0001.bin>


More information about the cfe-commits mailing list