[all-commits] [llvm/llvm-project] 75125e: [ExtractAPI] Add support for anyAppleOS (#197929)
Prajwal Nadig via All-commits
all-commits at lists.llvm.org
Fri May 15 07:03:27 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 75125e52fb6c882e0689a81eee306d7bdcec7624
https://github.com/llvm/llvm-project/commit/75125e52fb6c882e0689a81eee306d7bdcec7624
Author: Prajwal Nadig <pnadig at apple.com>
Date: 2026-05-15 (Fri, 15 May 2026)
Changed paths:
M clang/lib/AST/Availability.cpp
A clang/test/ExtractAPI/availability-anyappleos.c
Log Message:
-----------
[ExtractAPI] Add support for anyAppleOS (#197929)
6c8940ccad31457aadb48c6f2bce139b1c5dda01 introduced support for
anyAppleOS, which can be used to indicate availability for all Apple
platforms in a single availability attribute.
3089120f0cd2fe78911d1bc9703764a07fa7eb32 updated it to preserve the
original attribute info and store the inferred platform-specific
attribute in a separate field which, if present, is returned by
`getEffectiveAttr()`.
With these changes, ExtractAPI now reports these availabilities verbatim
for an "anyAppleOS" platform as the availability info for Decls directly
uses the availability attribute without fetching the effective
attribute. The expected output would be the target platform for which
the symbol graph is being built. This patch updates the availability
collection logic to use `getEffectiveAttr()` and include the target
platform instead of "anyAppleOS" for symbol availabilities in symbol
graphs.
rdar://174558184
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list