OSDN Git Service

clang: Only define OBJC_NEW_PROPERTIES when -x objective-c
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 18 Jan 2020 01:15:02 +0000 (17:15 -0800)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 24 Jan 2020 22:55:12 +0000 (14:55 -0800)
commit1e487e4c16821b6de3d651f618274df90bd3fad9
tree60de962be9b07c2d74873a374e71634fa71d813e
parent2c1decc040db57ef05ff2e02f9f96131632edf79
clang: Only define OBJC_NEW_PROPERTIES when -x objective-c

Since 2009 (in r63846) we've been `#define`-ing OBJC_NEW_PROPERTIES all
the time on Darwin, but this macro only makes sense for `-x objective-c`
and `-x objective-c++`.  Restrict it to those cases (for which there is
already separate logic).

https://reviews.llvm.org/D72970
rdar://problem/10050342
clang/lib/Basic/Targets/OSTargets.cpp
clang/test/Preprocessor/init.c