[libc-commits] [libc] 5fa014f - [libc/docs] Add a quick note about LLVM_LIBC_VARIABLE (#201556)
via libc-commits
libc-commits at lists.llvm.org
Sun Jun 7 22:56:59 PDT 2026
Author: Pavel Labath
Date: 2026-06-08T07:56:54+02:00
New Revision: 5fa014f591e02e9592d1150b936c31b9018893e2
URL: https://github.com/llvm/llvm-project/commit/5fa014f591e02e9592d1150b936c31b9018893e2
DIFF: https://github.com/llvm/llvm-project/commit/5fa014f591e02e9592d1150b936c31b9018893e2.diff
LOG: [libc/docs] Add a quick note about LLVM_LIBC_VARIABLE (#201556)
Added:
Modified:
libc/docs/dev/implementation_standard.rst
Removed:
################################################################################
diff --git a/libc/docs/dev/implementation_standard.rst b/libc/docs/dev/implementation_standard.rst
index a334cf1a11b3a..fcb1182734d4f 100644
--- a/libc/docs/dev/implementation_standard.rst
+++ b/libc/docs/dev/implementation_standard.rst
@@ -74,3 +74,7 @@ the macro is defined as follows::
The LLVM_LIBC_FUNCTION_ATTR macro is normally defined to nothing, but can be
defined by vendors who want to set their own attributes.
+
+When defining a variable, use the ``LLVM_LIBC_VARIABLE`` macro::
+
+ LLVM_LIBC_VARIABLE(char **, environ) = nullptr;
More information about the libc-commits
mailing list