[clang-tools-extra] [clang-doc] Add button a toggle for light/dark theme (PR #181587)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Feb 15 16:38:25 PST 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 3051 tests passed
* 29 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### Clang Tools
<details>
<summary>Clang Tools.clang-doc/basic-project.mustache.test</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
rm -rf C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-doc\Output\basic-project.mustache.test.tmp && mkdir -p C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-doc\Output\basic-project.mustache.test.tmp/docs C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-doc\Output\basic-project.mustache.test.tmp/build
# executed command: rm -rf 'C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-doc\Output\basic-project.mustache.test.tmp'
# note: command had no output on stdout or stderr
# executed command: mkdir -p 'C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-doc\Output\basic-project.mustache.test.tmp/docs' 'C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-doc\Output\basic-project.mustache.test.tmp/build'
# note: command had no output on stdout or stderr
# RUN: at line 2
sed 's|$test_dir|C:/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-doc|g' C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-doc/Inputs/basic-project/database_template.json > C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-doc\Output\basic-project.mustache.test.tmp/build/compile_commands.json
# executed command: sed 's|$test_dir|C:/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-doc|g' 'C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-doc/Inputs/basic-project/database_template.json'
# note: command had no output on stdout or stderr
# RUN: at line 4
clang-doc --format=html --output=C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-doc\Output\basic-project.mustache.test.tmp/docs --executor=all-TUs C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-doc\Output\basic-project.mustache.test.tmp/build/compile_commands.json
# executed command: clang-doc --format=html '--output=C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-doc\Output\basic-project.mustache.test.tmp/docs' --executor=all-TUs 'C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-doc\Output\basic-project.mustache.test.tmp/build/compile_commands.json'
# .---command stdout------------
# | Emiting docs in html format.
# | Mapping decls...
# | Collecting infos...
# | Reducing 5 infos...
# | Generating docs...
# | Generating assets for docs...
# `-----------------------------
# .---command stderr------------
# | [1/3] Processing file C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-doc\Inputs\basic-project\src\Calculator.cpp
# | [2/3] Processing file C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-doc\Inputs\basic-project\src\Circle.cpp
# | [3/3] Processing file C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-doc\Inputs\basic-project\src\Rectangle.cpp
# `-----------------------------
# RUN: at line 5
FileCheck C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-doc\basic-project.mustache.test -input-file=C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-doc\Output\basic-project.mustache.test.tmp/docs/html/GlobalNamespace/_ZTV5Shape.html -check-prefix=HTML-SHAPE
# executed command: FileCheck 'C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-doc\basic-project.mustache.test' '-input-file=C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-doc\Output\basic-project.mustache.test.tmp/docs/html/GlobalNamespace/_ZTV5Shape.html' -check-prefix=HTML-SHAPE
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-doc\basic-project.mustache.test:16:13: error: HTML-SHAPE: expected string not found in input
# | HTML-SHAPE: <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css" media="(prefers-color-scheme: light)">
# | ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-doc\Output\basic-project.mustache.test.tmp/docs/html/GlobalNamespace/_ZTV5Shape.html:7:46: note: scanning from here
# | <script src="../mustache-index.js"></script>
# | ^
# | C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-doc\Output\basic-project.mustache.test.tmp/docs/html/GlobalNamespace/_ZTV5Shape.html:8:24: note: possible intended match here
# | <link id="hljs-light-theme" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css" />
# | ^
# |
# | Input file: C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\test\clang-doc\Output\basic-project.mustache.test.tmp/docs/html/GlobalNamespace/_ZTV5Shape.html
# | Check file: C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-doc\basic-project.mustache.test
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: <!DOCTYPE html>
# | 2: <html lang="en-US">
# | 3: <head>
# | 4: <meta charset="utf-8"/>
# | 5: <title>Shape</title>
# | 6: <link rel="stylesheet" type="text/css" href="../clang-doc-mustache.css"/>
# | 7: <script src="../mustache-index.js"></script>
# | check:16'0 X error: no match found
# | 8: <link id="hljs-light-theme" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css" />
# | check:16'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:16'1 ? possible intended match
# | 9: <link id="hljs-dark-theme" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/dark.min.css" />
# | check:16'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 10: <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0&icon_names=routine" />
# | check:16'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 11: <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
# | check:16'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 12: <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/cpp.min.js"></script>
# | check:16'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 13: </head>
# | check:16'0 ~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/181587
More information about the cfe-commits
mailing list