Skip to content

Commit 5c88aa9

Browse files
authored
[libc++] Document the de-facto status of compiler extension support (#110877)
This was brought up in a maintainer's meeting a few months ago. This simply documents the current status quo.
1 parent 9e06e77 commit 5c88aa9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

libcxx/docs/UserDocumentation.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,15 @@ Unpoisoning may not be an option, if (for example) you are not maintaining the a
317317
* You are using allocator, which does not call destructor during deallocation.
318318
* You are aware that memory allocated with an allocator may be accessed, even when unused by container.
319319

320+
Support for compiler extensions
321+
-------------------------------
322+
323+
Clang, GCC and other compilers all provide their own set of language extensions. These extensions
324+
have often been developed without particular consideration for their interaction with the library,
325+
and as such, libc++ does not go out of its way to support them. The library may support specific
326+
compiler extensions which would then be documented explicitly, but the basic expectation should be
327+
that no special support is provided for arbitrary compiler extensions.
328+
320329
Platform specific behavior
321330
==========================
322331

0 commit comments

Comments
 (0)