Skip to content

Commit e908672

Browse files
[docs] Document the missing availability platforms and environments
Update the availability attribute documentation to include all of the missing platforms, and add in the environments.
1 parent f05145c commit e908672

File tree

1 file changed

+50
-30
lines changed

1 file changed

+50
-30
lines changed

clang/include/clang/Basic/AttrDocs.td

Lines changed: 50 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1636,41 +1636,61 @@ the implicitly inferred availability attributes. If no availability attribute
16361636
specifies availability for the current target platform, the availability
16371637
attributes are ignored. Supported platforms are:
16381638

1639-
``ios``
1640-
Apple's iOS operating system. The minimum deployment target is specified
1641-
as part of the ``-target *arch*-apple-ios*version*`` command line argument.
1642-
Alternatively, it can be specified by the ``-mtargetos=ios*version*``
1643-
command-line argument.
1639+
``iOS``
1640+
``macOS``
1641+
``tvOS``
1642+
``watchOS``
1643+
``iOSApplicationExtension``
1644+
``macOSApplicationExtension``
1645+
``tvOSApplicationExtension``
1646+
``watchOSApplicationExtension``
1647+
``macCatalyst``
1648+
``macCatalystApplicationExtension``
1649+
``visionOS``
1650+
``visionOSApplicationExtension``
1651+
``driverkit``
1652+
``swift``
1653+
``android``
1654+
``fuchsia``
1655+
``ohos``
1656+
``zos``
1657+
``ShaderModel``
16441658

1645-
``macos``
1646-
Apple's macOS operating system. The minimum deployment target is specified
1647-
as part of the ``-target *arch*-apple-macos*version*`` command line argument.
1648-
Alternatively, it can be specified by the ``-mtargetos=macos*version*``
1649-
command-line argument. ``macosx`` is supported for
1650-
backward-compatibility reasons, but it is deprecated.
1659+
Some platforms have alias names:
16511660

1661+
``ios``
1662+
``macos``
1663+
``macosx (deprecated)``
16521664
``tvos``
1653-
Apple's tvOS operating system. The minimum deployment target is specified
1654-
as part of the ``-target *arch*-apple-tvos*version*`` command line argument.
1655-
Alternatively, it can be specified by the ``-mtargetos=tvos*version*``
1656-
command-line argument.
1657-
16581665
``watchos``
1659-
Apple's watchOS operating system. The minimum deployment target is specified
1660-
as part of the ``-target *arch*-apple-watchos*version*`` command line argument.
1661-
Alternatively, it can be specified by the ``-mtargetos=watchos*version*``
1662-
command-line argument.
1663-
1666+
``ios_app_extension``
1667+
``macos_app_extension``
1668+
``macosx_app_extension (deprecated)``
1669+
``tvos_app_extension``
1670+
``watchos_app_extension``
1671+
``maccatalyst``
1672+
``maccatalyst_app_extension``
16641673
``visionos``
1665-
Apple's visionOS operating system. The minimum deployment target is specified
1666-
as part of the ``-target *arch*-apple-visionos*version*`` command line argument.
1667-
Alternatively, it can be specified by the ``-mtargetos=visionos*version*``
1668-
command-line argument.
1669-
1670-
``driverkit``
1671-
Apple's DriverKit userspace kernel extensions. The minimum deployment target
1672-
is specified as part of the ``-target *arch*-apple-driverkit*version*``
1673-
command line argument.
1674+
``visionos_app_extension``
1675+
``shadermodel``
1676+
1677+
Supported environment names:
1678+
1679+
``pixel``
1680+
``vertex``
1681+
``geometry``
1682+
``hull``
1683+
``domain``
1684+
``compute``
1685+
``raygeneration``
1686+
``intersection``
1687+
``anyhit``
1688+
``closesthit``
1689+
``miss``
1690+
``callable``
1691+
``mesh``
1692+
``amplification``
1693+
``library``
16741694

16751695
A declaration can typically be used even when deploying back to a platform
16761696
version prior to when the declaration was introduced. When this happens, the

0 commit comments

Comments
 (0)