mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 14:16:08 +00:00

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
6 lines
332 B
C
6 lines
332 B
C
// RUN: %clang_cc1 "-triple" "x86_64-apple-ios13.1-macabi" -fsyntax-only -verify %s
|
|
|
|
void f0(void) __attribute__((availability(macOS, introduced = 10.11)));
|
|
// expected-warning@-1 {{macOS availability is ignored without a valid 'SDKSettings.json' in the SDK}}
|
|
void f1(void) __attribute__((availability(macOS, introduced = 10.15)));
|