[PATCH] D105052: [clang][darwin] add support for Mac Catalyst availability
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 29 05:50:11 PDT 2021
aaron.ballman added inline comments.
================
Comment at: clang/include/clang/Basic/Attr.td:860
+ .Case("maccatalyst", "macCatalyst")
+ .Case("maccatalyst_app_extension", "macCatalyst App Extension")
.Case("swift", "Swift")
----------------
Should this be `(App Extension)` instead (consistent with the other cases)?
================
Comment at: clang/lib/Sema/SemaDeclAttr.cpp:2564
+ IdentifierInfo *NewII = nullptr;
+ auto MinIOSMacVersion = [](const VersionTuple &V) -> VersionTuple {
+ if (V.empty())
----------------
Do you need the trailing return type here?
================
Comment at: clang/lib/Sema/SemaDeclAttr.cpp:2572-2573
+ };
+ llvm::function_ref<VersionTuple(const VersionTuple &V)> VersionRemapper =
+ MinIOSMacVersion;
+ if (II->getName() == "ios")
----------------
Why do you need a `function_ref` here -- can we not just call `MinIOSMacVersion()` instead?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105052/new/
https://reviews.llvm.org/D105052
More information about the cfe-commits
mailing list