[PATCH] D34264: Introduce -Wunguarded-availability-new, which is like -Wunguarded-availability, except that it's enabled by default for new deployment targets
Alex Lorenz via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 15 17:56:09 PDT 2017
arphaman created this revision.
This patch adds a new warning flag called `-Wunguarded-availability-new`. If `-Wunguarded-availability` is off, this warning only warns about uses of APIs that have been introduced in macOS >= 10.13, iOS >= 11, watchOS >= 4 and tvOS >= 11. This warning is on by default. We decided to use this kind of solution as we didn't want to turn on `-Wunguarded-availability` by default, as we didn't want our users to get warnings about uses of old APIs in their existing projects.
Repository:
rL LLVM
https://reviews.llvm.org/D34264
Files:
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDeclAttr.cpp
test/SemaObjC/unguarded-availability-new.m
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34264.102766.patch
Type: text/x-patch
Size: 10219 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170616/688015ad/attachment-0001.bin>
More information about the cfe-commits
mailing list