[PATCH] D35061: [ObjC] Avoid the -Wunguarded-availability warnings for protocol requirements in protocol/class/category declarations

Alex Lorenz via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 6 09:49:46 PDT 2017


arphaman added inline comments.


================
Comment at: lib/Sema/SemaExpr.cpp:142
   if (Result == AR_NotYetIntroduced) {
+    if (AvoidAvailabilityChecks)
+      return;
----------------
erik.pilkington wrote:
> Why are we doing this just for partials? Doesn't this also apply to unavailable/deprecated?
We warned about the unavailable/deprecated protocols previously, so we should probably keep these warnings. The unguarded availability one is new, so we can drop it.


Repository:
  rL LLVM

https://reviews.llvm.org/D35061





More information about the cfe-commits mailing list