Skip to content

Commit 9dd1d65

Browse files
authored
Apply suggestions from code review
1 parent e044927 commit 9dd1d65

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

libcxx/docs/VendorDocumentation.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -596,8 +596,8 @@ libc++'s ABI guarantees
596596

597597
Libc++ provides several ABI guarantees, which are documented :ref:`here <ABIGuarantees>`.
598598

599-
Availability Markups
600-
====================
599+
Availability Markup
600+
===================
601601

602602
Libc++ is shipped by various vendors. In particular, it is used as a system library on macOS, iOS and other Apple
603603
platforms. In order for users to be able to compile a binary that is intended to be deployed to an older version of a
@@ -615,7 +615,6 @@ the symbols when actually trying to launch the program on macOS 10.13. To turn t
615615
declarations are annotated with when they were introduced, and the compiler can produce a diagnostic if the program
616616
references something that isn't available on the deployment target.
617617

618-
619618
This mechanism is general in nature, and any vendor can add their markup to the library (see below). Whenever a new
620619
feature is added that requires support in the shared library, two macros are added below to allow marking the feature as
621620
unavailable:

libcxx/include/__configuration/availability.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// This file defines a framework that can be used by vendors to encode the version of an operating system that various
2121
// features of libc++ has been shipped in. This is primarily intended to allow safely deploying an executable built with
2222
// a new version of the library on a platform containing an older version of the built library.
23-
// Detailed documentation for this can be found at https://libcxx.llvm.org/VendorDocumentation.html#availability-markups
23+
// Detailed documentation for this can be found at https://libcxx.llvm.org/VendorDocumentation.html#availability-markup
2424

2525
// Availability markup is disabled when building the library, or when a non-Clang
2626
// compiler is used because only Clang supports the necessary attributes.

0 commit comments

Comments
 (0)