[clang-tools-extra] [clang-doc] Add concepts to namespace template (PR #173956)

via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 29 22:31:29 PST 2025


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 3070 tests passed
* 7 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### Clang Tools
<details>
<summary>Clang Tools.clang-doc/json/concept.cpp</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-doc/json/Output/concept.cpp.tmp && mkdir -p /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-doc/json/Output/concept.cpp.tmp
# executed command: rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-doc/json/Output/concept.cpp.tmp
# note: command had no output on stdout or stderr
# executed command: mkdir -p /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-doc/json/Output/concept.cpp.tmp
# note: command had no output on stdout or stderr
# RUN: at line 2
clang-doc --extra-arg -std=c++20 --output=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-doc/json/Output/concept.cpp.tmp --format=json --executor=standalone /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-doc/json/concept.cpp
# executed command: clang-doc --extra-arg -std=c++20 --output=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-doc/json/Output/concept.cpp.tmp --format=json --executor=standalone /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-doc/json/concept.cpp
# .---command stdout------------
# | Emiting docs in json format.
# | Mapping decls...
# | Collecting infos...
# | Reducing 1 infos...
# | Generating docs...
# | Generating assets for docs...
# `-----------------------------
# .---command stderr------------
# | Error while trying to load a compilation database:
# | Could not auto-detect compilation database for file "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-doc/json/concept.cpp"
# | No compilation database found in /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-doc/json or any parent directory
# | fixed-compilation-database: Error while opening fixed database: No such file or directory
# | json-compilation-database: Error while opening JSON database: No such file or directory
# | Running without flags.
# `-----------------------------
# RUN: at line 3
clang-doc --extra-arg -std=c++20 --output=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-doc/json/Output/concept.cpp.tmp --format=html --executor=standalone /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-doc/json/concept.cpp
# executed command: clang-doc --extra-arg -std=c++20 --output=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-doc/json/Output/concept.cpp.tmp --format=html --executor=standalone /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-doc/json/concept.cpp
# .---command stdout------------
# | Emiting docs in html format.
# | Mapping decls...
# | Collecting infos...
# | Reducing 1 infos...
# | Generating docs...
# | Generating assets for docs...
# `-----------------------------
# .---command stderr------------
# | Error while trying to load a compilation database:
# | Could not auto-detect compilation database for file "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-doc/json/concept.cpp"
# | No compilation database found in /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-doc/json or any parent directory
# | fixed-compilation-database: Error while opening fixed database: No such file or directory
# | json-compilation-database: Error while opening JSON database: No such file or directory
# | Running without flags.
# `-----------------------------
# RUN: at line 4
FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-doc/json/concept.cpp < /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-doc/json/Output/concept.cpp.tmp/json/GlobalNamespace/index.json
# executed command: FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-doc/json/concept.cpp
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-doc/json/concept.cpp:27:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: "Filename": "/home/erick/code/llvm-project/clang-tools-extra/test/clang-doc/json/concept.cpp",
# |                ^
# | <stdin>:18:15: note: scanning from here
# |  "Location": {
# |               ^
# | <stdin>:19:43: note: possible intended match here
# |  "Filename": "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-doc/json/concept.cpp",
# |                                           ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-doc/json/concept.cpp
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            .
# |            .
# |            .
# |           13:  ] 
# |           14:  }, 
# |           15:  "End": true, 
# |           16:  "InfoType": "concept", 
# |           17:  "IsType": true, 
# |           18:  "Location": { 
# | next:27'0                   X error: no match found
# |           19:  "Filename": "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-doc/json/concept.cpp", 
# | next:27'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:27'1                                               ?                                                                                 possible intended match
# |           20:  "LineNumber": 7 
# | next:27'0     ~~~~~~~~~~~~~~~~~
# |           21:  }, 
# | next:27'0     ~~~~
# |           22:  "Name": "Incrementable", 
# | next:27'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           23:  "Template": { 
# | next:27'0     ~~~~~~~~~~~~~~~
# |           24:  "Parameters": [ 
# | next:27'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/173956


More information about the cfe-commits mailing list