[clang] [clang-tools-extra] Handle recording inheritance for templates (PR #177273)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 21 15:49:34 PST 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 52278 tests passed
* 911 tests skipped
* 2 tests failed
## Failed Tests
(click on a test name to see its output)
### Clangd
<details>
<summary>Clangd.Clangd/protocol.test</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
not clangd -pretty -sync -enable-test-uri-scheme < C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\protocol.test | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -strict-whitespace C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\protocol.test
# executed command: not clangd -pretty -sync -enable-test-uri-scheme
# .---command stderr------------
# | I[23:48:08.087] clangd version 23.0.0git (https://github.com/llvm/llvm-project 6eaee2146fd88ff1c6cc382f702f7a2063f287ca)
# | I[23:48:08.088] Features: windows+debug
# | I[23:48:08.088] PID: 78940
# | I[23:48:08.088] Working directory: C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\clangd\test
# | I[23:48:08.088] argv[0]: clangd.exe
# | I[23:48:08.088] argv[1]: -pretty
# | I[23:48:08.088] argv[2]: -sync
# | I[23:48:08.088] argv[3]: -enable-test-uri-scheme
# | I[23:48:08.098] Starting LSP over stdin/stdout
# | I[23:48:08.099] <-- initialize(0)
# | I[23:48:08.109] --> reply:initialize(0) 10 ms
# | I[23:48:08.109] Warning: Missing Content-Length header, or zero-length message.
# | I[23:48:08.109] <-- textDocument/didOpen
# | I[23:48:08.114] Failed to find compilation database for C:\clangd-test\main.cpp
# | I[23:48:08.115] ASTWorker building file C:\clangd-test\main.cpp version 1 with command clangd fallback
# | [C:\clangd-test]
# | "C:\\_work\\llvm-project\\llvm-project\\build\\bin\\clang" "-resource-dir=C:\\_work\\llvm-project\\llvm-project\\build\\lib\\clang\\23" -- "C:\\clangd-test\\main.cpp"
# | E[23:48:08.115] VFS: failed to set CWD to C:\clangd-test: no such file or directory
# | E[23:48:08.120] VFS: failed to set CWD to C:\clangd-test: no such file or directory
# | I[23:48:08.152] Built preamble of size 266560 for file C:\clangd-test\main.cpp version 1 in 0.03 seconds
# | I[23:48:08.173] Indexing c++14 standard library in the context of C:\clangd-test\main.cpp
# | Assertion failed: Val && "isa<> used on a null pointer", file C:\_work\llvm-project\llvm-project\llvm\include\llvm/Support/Casting.h, line 109
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | Stack dump:
# | 0. Program arguments: clangd -pretty -sync -enable-test-uri-scheme
# | Signalled while building preamble
# | Filename: main.cpp
# | Directory: C:\clangd-test
# | Command Line: C:\_work\llvm-project\llvm-project\build\bin\clang -resource-dir=C:\_work\llvm-project\llvm-project\build\lib\clang\23 -- C:\clangd-test\main.cpp
# | Version: 1
# | Signalled during AST worker action: Update
# | Filename: main.cpp
# | Directory: C:\clangd-test
# | Command Line: C:\_work\llvm-project\llvm-project\build\bin\clang -resource-dir=C:\_work\llvm-project\llvm-project\build\lib\clang\23 -- C:\clangd-test\main.cpp
# | Version: 1
# | Signalled while processing message:
# | {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"test:///main.cpp","languageId":"cpp","version":1,"text":"struct fake { int a, bb, ccc; int f(int i, const float f) const; };\nint main() {\n fake f;\n f.\n}\n"}}}
# `-----------------------------
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -strict-whitespace 'C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\protocol.test'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\protocol.test:32:16: error: CHECK: expected string not found in input
# | # CHECK: "id": 1,
# | ^
# | <stdin>:14:8: note: scanning from here
# | },
# | ^
# | <stdin>:62:13: note: possible intended match here
# | "legend": {
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\protocol.test
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 9: "callHierarchyProvider": true,
# | 10: "clangdInlayHintsProvider": true,
# | 11: "codeActionProvider": true,
# | 12: "compilationDatabase": {
# | 13: "automaticReload": true
# | 14: },
# | check:32'0 X~ error: no match found
# | 15: "completionProvider": {
# | check:32'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 16: "resolveProvider": false,
# | check:32'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 17: "triggerCharacters": [
# | check:32'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 18: ".",
# | check:32'0 ~~~~~~~~~~~~~~~
# | 19: "<",
# | check:32'0 ~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 57: "selectionRangeProvider": true,
# | check:32'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 58: "semanticTokensProvider": {
# | check:32'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 59: "full": {
# | check:32'0 ~~~~~~~~~~~~~~~~~~
# | 60: "delta": true
# | check:32'0 ~~~~~~~~~~~~~~~~~~~~~~~~
# | 61: },
# | check:32'0 ~~~~~~~~~~~
# | 62: "legend": {
# | check:32'0 ~~~~~~~~~~~~~~~~~~~~
# | check:32'1 ? possible intended match
# | 63: "tokenModifiers": [
# | check:32'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 64: "declaration",
# | check:32'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 65: "definition",
# | check:32'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 66: "deprecated",
# | check:32'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 67: "deduced",
# | check:32'0 ~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
### Clang
<details>
<summary>Clang.Index/index-template-specialization.cpp</summary>
```
Exit Code: 3
Command Output (stdout):
--
# RUN: at line 20
env CINDEXTEST_INDEXIMPLICITTEMPLATEINSTANTIATIONS=1 c:\_work\llvm-project\llvm-project\build\bin\c-index-test.exe -index-file C:\_work\llvm-project\llvm-project\clang\test\Index\index-template-specialization.cpp | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\Index\index-template-specialization.cpp
# executed command: env CINDEXTEST_INDEXIMPLICITTEMPLATEINSTANTIATIONS=1 'c:\_work\llvm-project\llvm-project\build\bin\c-index-test.exe' -index-file 'C:\_work\llvm-project\llvm-project\clang\test\Index\index-template-specialization.cpp'
# .---command stderr------------
# | Assertion failed: D, file C:\_work\llvm-project\llvm-project\clang\lib\Index\IndexSymbol.cpp, line 54
# | libclang: crash detected during indexing source file: {
# | 'source_filename' : '(null)'
# | 'command_line_args' : ['clang', 'C:\_work\llvm-project\llvm-project\clang\test\Index\index-template-specialization.cpp'],
# | 'unsaved_files' : [],
# | 'options' : 1,
# | }
# | Assertion failed: InstantiatingSpecializations.empty() && "failed to clean up an InstantiatingTemplate?", file C:\_work\llvm-project\llvm-project\clang\lib\Sema\Sema.cpp, line 590
# `-----------------------------
# error: command failed with exit status: 3
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\Index\index-template-specialization.cpp'
# note: command had no output on stdout or stderr
--
```
</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/177273
More information about the cfe-commits
mailing list