]> granicus.if.org Git - clang/commit
[ObjC] Supress the 'implementing unavailable method' warning when
authorAlex Lorenz <arphaman@gmail.com>
Thu, 3 May 2018 01:12:06 +0000 (01:12 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Thu, 3 May 2018 01:12:06 +0000 (01:12 +0000)
commit094219deccc9dd36708632c3982a4142fedab446
treef14ca6dca88668336d82ce112f5982283f1fc58b
parent3f205d63b2d233dcedb9e3c7baa6e88667c761b2
[ObjC] Supress the 'implementing unavailable method' warning when
the method declaration is unavailable for an app extension platform

Rationale:
Classes are often shared between an app extension code and
non-app extension code. There's no way to remove the implementation
using preprocessor when building the app extension, so we should not warn here.

rdar://38150617

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@331421 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/DeclBase.h
lib/AST/DeclBase.cpp
lib/Sema/SemaDeclObjC.cpp
test/SemaObjC/avoid-unavailable-implementation-warning-in-app-extension.m [new file with mode: 0644]