[clang] [clang][docs] Fix docs-clang-html. (PR #142387)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 2 06:13:02 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Abid Qadeer (abidh)
<details>
<summary>Changes</summary>
I observed that docs-clang-html is failing since https://github.com/llvm/llvm-project/pull/142158 with the following:
Warning, treated as error:
tools/clang/docs/DiagnosticsReference.rst:18000:Unexpected indentation. ninja: build stopped: subcommand failed.
Adding an extra empty line here fixes the build.
---
Full diff: https://github.com/llvm/llvm-project/pull/142387.diff
1 Files Affected:
- (modified) clang/include/clang/Basic/DiagnosticGroups.td (+1)
``````````diff
diff --git a/clang/include/clang/Basic/DiagnosticGroups.td b/clang/include/clang/Basic/DiagnosticGroups.td
index 60c650583801a..0161b3953f282 100644
--- a/clang/include/clang/Basic/DiagnosticGroups.td
+++ b/clang/include/clang/Basic/DiagnosticGroups.td
@@ -821,6 +821,7 @@ As well as one of the following:
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. Giving the object non-hidden visibility, e.g. using ``__attribute((visibility("default")))``.
``````````
</details>
https://github.com/llvm/llvm-project/pull/142387
More information about the cfe-commits
mailing list