[libc-commits] [libc] [libc/docs] Add a quick note about LLVM_LIBC_VARIABLE (PR #201556)
Pavel Labath via libc-commits
libc-commits at lists.llvm.org
Thu Jun 4 04:41:42 PDT 2026
https://github.com/labath created https://github.com/llvm/llvm-project/pull/201556
None
>From 9cae6e5a99c93cc16440521881728aa5de3180d2 Mon Sep 17 00:00:00 2001
From: Pavel Labath <pavel at labath.sk>
Date: Thu, 4 Jun 2026 11:34:06 +0000
Subject: [PATCH] [libc/docs] Add a quick note about LLVM_LIBC_VARIABLE
---
libc/docs/dev/implementation_standard.rst | 4 ++++
1 file changed, 4 insertions(+)
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