[all-commits] [llvm/llvm-project] eb26ba: [clang][darwin] add support for remapping macOS av...

Alex Lorenz via All-commits all-commits at lists.llvm.org
Wed Jul 21 11:32:57 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eb26ba9da8aeab8ecc1209034912f9f12a945128
      https://github.com/llvm/llvm-project/commit/eb26ba9da8aeab8ecc1209034912f9f12a945128
  Author: Alex Lorenz <arphaman at gmail.com>
  Date:   2021-07-21 (Wed, 21 Jul 2021)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Basic/DarwinSDKInfo.cpp
    M clang/lib/Sema/Sema.cpp
    M clang/lib/Sema/SemaDeclAttr.cpp
    M clang/test/Driver/Inputs/MacOSX10.14.sdk/SDKSettings.json
    M clang/test/Driver/Inputs/WatchOS6.0.sdk/SDKSettings.json
    M clang/test/Driver/Inputs/iPhoneOS13.0.sdk/SDKSettings.json
    A clang/test/Sema/Inputs/MacOSX11.0.sdk/SDKSettings.json
    A clang/test/Sema/attr-availability-iosmac-infer-from-macos-no-sdk-settings.c
    A clang/test/Sema/attr-availability-iosmac-infer-from-macos.c
    M clang/test/Sema/attr-availability-maccatalyst.c

  Log Message:
  -----------
  [clang][darwin] add support for remapping macOS availability to Mac Catalyst availability

This commit adds supports for clang to remap macOS availability attributes that have introduced,
deprecated or obsoleted versions to appropriate Mac Catalyst availability attributes. This
mapping is done using the version mapping provided in the macOS SDK, in the SDKSettings.json file.
The mappings in the SDKSettings json file will also be used in the clang driver for the driver
Mac Catalyst patch, and they could also be used in the future for other platforms as well.

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




More information about the All-commits mailing list