[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)
commitf4d4cfbefa4c1e61a69f47ac41790cd15a65fb07
treeb38163d45f8f9547286ba83eb9a8534f343c62fb
parent61ffbf21cdc92e1acc4794b75ea0c12e2caa9414
[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

llvm-svn: 331421
clang/include/clang/AST/DeclBase.h
clang/lib/AST/DeclBase.cpp
clang/lib/Sema/SemaDeclObjC.cpp
clang/test/SemaObjC/avoid-unavailable-implementation-warning-in-app-extension.m [new file with mode: 0644]