[libcxx-commits] [libcxx] [libc++] Document the de-facto status of compiler extension support (PR #110877)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Oct 2 09:11:13 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libcxx
Author: Louis Dionne (ldionne)
<details>
<summary>Changes</summary>
This was brought up in a maintainer's meeting a few months ago. This simply documents the current status quo.
---
Full diff: https://github.com/llvm/llvm-project/pull/110877.diff
1 Files Affected:
- (modified) libcxx/docs/UserDocumentation.rst (+9)
``````````diff
diff --git a/libcxx/docs/UserDocumentation.rst b/libcxx/docs/UserDocumentation.rst
index 6659fa54f49df5..f5e55994aa7572 100644
--- a/libcxx/docs/UserDocumentation.rst
+++ b/libcxx/docs/UserDocumentation.rst
@@ -317,6 +317,15 @@ Unpoisoning may not be an option, if (for example) you are not maintaining the a
* You are using allocator, which does not call destructor during deallocation.
* You are aware that memory allocated with an allocator may be accessed, even when unused by container.
+Support for compiler extensions
+-------------------------------
+
+Clang, GCC and other compilers all provide their own set of language extensions. These extensions
+have often been developed without particular consideration for their interaction with the library,
+and as such, libc++ does not go out of its way to support them. The library may support specific
+compiler extensions which would then be documented explicitly, but the basic expectation should be
+that no special support is provided for arbitrary compiler extensions.
+
Platform specific behavior
==========================
``````````
</details>
https://github.com/llvm/llvm-project/pull/110877
More information about the libcxx-commits
mailing list