]> granicus.if.org Git - clang/commit
[Availability] Improve availability to consider functions run at load time
authorSteven Wu <stevenwu@apple.com>
Mon, 16 Apr 2018 23:34:18 +0000 (23:34 +0000)
committerSteven Wu <stevenwu@apple.com>
Mon, 16 Apr 2018 23:34:18 +0000 (23:34 +0000)
commitdd36ea8e5a454b1d040fd75f7b4ad40bcda54bb0
tree9761e213ce6ac5e997056d570aa50fa02ebdc2a2
parent3857ab3c9e3fb78c18a66e1f3db0353d154b6b3b
[Availability] Improve availability to consider functions run at load time

Summary:
There are some functions/methods that run when the application launches
or the library loads. Those functions will run reguardless the OS
version as long as it satifies the minimum deployment target. Annotate
them with availability attributes doesn't really make sense because they
are essentially available on all targets since minimum deployment
target.

rdar://problem/36093384

Reviewers: arphaman, erik.pilkington

Reviewed By: erik.pilkington

Subscribers: erik.pilkington, cfe-commits

Differential Revision: https://reviews.llvm.org/D45699

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@330166 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclAttr.cpp
lib/Sema/SemaDeclObjC.cpp
test/SemaObjC/unguarded-availability.m