[clang] 38fa753 - Fix diagnostic documentation build errors
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 16 08:13:38 PDT 2025
Author: Aaron Ballman
Date: 2025-06-16T11:13:28-04:00
New Revision: 38fa7533fbac525198206200cf2caf04071fcdb1
URL: https://github.com/llvm/llvm-project/commit/38fa7533fbac525198206200cf2caf04071fcdb1
DIFF: https://github.com/llvm/llvm-project/commit/38fa7533fbac525198206200cf2caf04071fcdb1.diff
LOG: Fix diagnostic documentation build errors
Added:
Modified:
clang/include/clang/Basic/DiagnosticGroups.td
Removed:
################################################################################
diff --git a/clang/include/clang/Basic/DiagnosticGroups.td b/clang/include/clang/Basic/DiagnosticGroups.td
index 38b4f581fa5c9..36fa3227fd6a6 100644
--- a/clang/include/clang/Basic/DiagnosticGroups.td
+++ b/clang/include/clang/Basic/DiagnosticGroups.td
@@ -815,19 +815,22 @@ changes to one object won't affect the others, the object's initializer will run
once per copy, etc.
Specifically, this warning fires when it detects an object which:
-1. Is defined as ``inline`` in a header file (so it might get compiled into multiple libaries), and
-2. Has external linkage (otherwise it's supposed to be duplicated), and
-3. Has hidden visibility (posix) or lacks a dllimport/dllexport attribute (windows).
+
+#. Is defined as ``inline`` in a header file (so it might get compiled into multiple libaries), and
+#. Has external linkage (otherwise it's supposed to be duplicated), and
+#. Has hidden visibility (posix) or lacks a dllimport/dllexport attribute (windows).
As well as one of the following:
-1. The object is mutable, or
-2. The object's initializer definitely has side effects.
+
+#. The object is mutable, or
+#. The object's initializer definitely has side effects.
The warning can be resolved by removing one of the conditions above. In rough
order of preference, this may be done by:
-1. Marking the object ``const`` (if possible)
-2. Moving the object's definition to a source file
-3. Making the object visible using ``__attribute((visibility("default")))``,
+
+#. Marking the object ``const`` (if possible)
+#. Moving the object's definition to a source file
+#. Making the object visible using ``__attribute((visibility("default")))``,
``__declspec(dllimport)``, or ``__declspec(dllexport)``.
When annotating an object with ``__declspec(dllimport)`` or ``__declspec(dllexport)``,
More information about the cfe-commits
mailing list