[ObjC] Avoid the -Wunguarded-availability warnings for protocol
requirements in protocol/class/category declarations The unguarded availability warnings in the protocol requirements of a protocol /class/category declaration can be avoided. This matches the behaviour of Swift's diagnostics. The warnings for deprecated/unavailable protocols are preserved. rdar://33156429 Differential Revision: https://reviews.llvm.org/D35061 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@307368 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Sema/Sema.h 3 additions, 2 deletionsinclude/clang/Sema/Sema.h
- lib/Sema/SemaDeclObjC.cpp 4 additions, 1 deletionlib/Sema/SemaDeclObjC.cpp
- lib/Sema/SemaExpr.cpp 8 additions, 3 deletionslib/Sema/SemaExpr.cpp
- test/SemaObjC/unguarded-availability.m 24 additions, 0 deletionstest/SemaObjC/unguarded-availability.m
Loading
Please register or sign in to comment