[all-commits] [llvm/llvm-project] 1e487e: clang: Only define OBJC_NEW_PROPERTIES when -x obj...

Duncan P. N. Exon Smith via All-commits all-commits at lists.llvm.org
Fri Jan 24 14:55:24 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1e487e4c16821b6de3d651f618274df90bd3fad9
      https://github.com/llvm/llvm-project/commit/1e487e4c16821b6de3d651f618274df90bd3fad9
  Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
  Date:   2020-01-24 (Fri, 24 Jan 2020)

  Changed paths:
    M clang/lib/Basic/Targets/OSTargets.cpp
    M clang/test/Preprocessor/init.c

  Log Message:
  -----------
  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




More information about the All-commits mailing list