[clang-tools-extra] Calculate symbol tags Overrides and Implements (PR #181997)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 18 03:56:24 PST 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 3059 tests passed
* 29 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### Clangd
<details>
<summary>Clangd.Clangd/symbol-tags.test</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 3
clangd -lit-test < C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\symbol-tags.test | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\symbol-tags.test
# executed command: clangd -lit-test
# .---command stderr------------
# | I[11:55:18.497] clangd version 23.0.0git (https://github.com/llvm/llvm-project f7362d98c6e75632de8a8ea2d48fe058d7fd3e95)
# | I[11:55:18.499] Features: windows+debug
# | I[11:55:18.499] PID: 17760
# | I[11:55:18.499] Working directory: C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\clangd\test
# | I[11:55:18.499] argv[0]: clangd.exe
# | I[11:55:18.499] argv[1]: -lit-test
# | I[11:55:18.499] Starting LSP over stdin/stdout
# | V[11:55:18.499] <<< {
# | "id": 0,
# | "jsonrpc": "2.0",
# | "method": "initialize",
# | "params": {
# | "capabilities": {
# | "textDocument": {
# | "documentSymbol": {
# | "hierarchicalDocumentSymbolSupport": true
# | }
# | },
# | "workspace": {
# | "symbol": {
# | "symbolKind": {
# | "valueSet": [
# | 1,
# | 2,
# | 3,
# | 4,
# | 5,
# | 6,
# | 7,
# | 8,
# | 9,
# | 10,
# | 11,
# | 12,
# | 13,
# | 14,
# | 15,
# | 16,
# | 17,
# | 18,
# | 19,
# | 20,
# | 21,
# | 22,
# | 23,
# | 24,
# | 25,
# | 26
# | ]
# | }
# | }
# | }
# | },
# | "processId": 123,
# | "rootPath": "clangd",
# | "trace": "off"
# | }
# | }
# |
# | I[11:55:18.500] <-- initialize(0)
# | I[11:55:18.799] --> reply:initialize(0) 299 ms
# | V[11:55:18.799] >>> {
# | "id": 0,
# | "jsonrpc": "2.0",
# | "result": {
# | "capabilities": {
# | "astProvider": true,
# | "callHierarchyProvider": true,
# | "clangdInlayHintsProvider": true,
# | "codeActionProvider": true,
# | "compilationDatabase": {
# | "automaticReload": true
# | },
# | "completionProvider": {
# | "resolveProvider": false,
# | "triggerCharacters": [
# | ".",
# | "<",
# | ">",
# | ":",
# | "\"",
# | "/",
# | "*"
# | ]
# | },
# | "declarationProvider": true,
# | "definitionProvider": true,
# | "documentFormattingProvider": true,
# | "documentHighlightProvider": true,
# | "documentLinkProvider": {
# | "resolveProvider": false
# | },
# | "documentOnTypeFormattingProvider": {
# | "firstTriggerCharacter": "\n",
# | "moreTriggerCharacter": []
# | },
# | "documentRangeFormattingProvider": {
# | "rangesSupport": true
# | },
# | "documentSymbolProvider": true,
# | "executeCommandProvider": {
# | "commands": [
# | "clangd.applyFix",
# | "clangd.applyRename",
# | "clangd.applyTweak"
# | ]
# | },
# | "foldingRangeProvider": true,
# | "hoverProvider": true,
# | "implementationProvider": true,
# | "inactiveRegionsProvider": true,
# | "inlayHintProvider": true,
# | "memoryUsageProvider": true,
# | "referencesProvider": true,
# | "renameProvider": true,
# | "selectionRangeProvider": true,
# | "semanticTokensProvider": {
# | "full": {
# | "delta": true
# | },
# | "legend": {
# | "tokenModifiers": [
# | "declaration",
# | "definition",
# | "deprecated",
# | "deduced",
# | "readonly",
# | "static",
# | "abstract",
# | "virtual",
# | "dependentName",
# | "defaultLibrary",
# | "usedAsMutableReference",
# | "usedAsMutablePointer",
# | "constructorOrDestructor",
# | "userDefined",
# | "functionScope",
# | "classScope",
# | "fileScope",
# | "globalScope"
# | ],
# | "tokenTypes": [
# | "variable",
# | "variable",
# | "parameter",
# | "function",
# | "method",
# | "function",
# | "property",
# | "variable",
# | "class",
# | "interface",
# | "enum",
# | "enumMember",
# | "type",
# | "type",
# | "unknown",
# | "namespace",
# | "typeParameter",
# | "concept",
# | "type",
# | "macro",
# | "modifier",
# | "operator",
# | "bracket",
# | "label",
# | "comment"
# | ]
# | },
# | "range": false
# | },
# | "signatureHelpProvider": {
# | "triggerCharacters": [
# | "(",
# | ")",
# | "{",
# | "}",
# | "<",
# | ">",
# | ","
# | ]
# | },
# | "standardTypeHierarchyProvider": true,
# | "textDocumentSync": {
# | "change": 2,
# | "openClose": true,
# | "save": true
# | },
# | "typeDefinitionProvider": true,
# | "typeHierarchyProvider": true,
# | "workspaceSymbolProvider": true
# | },
# | "serverInfo": {
# | "name": "clangd",
# | "version": "clangd version 23.0.0git (https://github.com/llvm/llvm-project f7362d98c6e75632de8a8ea2d48fe058d7fd3e95) windows+debug x86_64-pc-windows-msvc"
# | }
# | }
# | }
# |
# | V[11:55:18.799] <<< {
# | "jsonrpc": "2.0",
# | "method": "textDocument/didOpen",
# | "params": {
# | "textDocument": {
# | "languageId": "cpp",
# | "text": "class A {\n virtual void f() const = 0;\n};",
# | "uri": "test:///main.cpp",
# | "version": 1
# | }
# | }
# | }
# |
# | I[11:55:18.799] <-- textDocument/didOpen
# | I[11:55:18.802] Failed to find compilation database for C:\clangd-test\main.cpp
# | I[11:55:18.802] 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[11:55:18.803] VFS: failed to set CWD to C:\clangd-test: no such file or directory
# | V[11:55:18.805] Driver produced command: cc1 -cc1 -triple x86_64-pc-windows-msvc19.29.30159 -fsyntax-only -disable-free -clear-ast-before-backend -main-file-name main.cpp -mrelocation-model pic -pic-level 2 -mframe-pointer=none -relaxed-aliasing -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -fms-volatile -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic "-fdebug-compilation-dir=C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\tools\\extra\\clangd\\test" "-fcoverage-compilation-dir=C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\tools\\extra\\clangd\\test" -resource-dir "C:\\_work\\llvm-project\\llvm-project\\build\\lib\\clang\\23" -internal-isystem "C:\\_work\\llvm-project\\llvm-project\\build\\lib\\clang\\23\\include" -internal-isystem "C:\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\ATLMFC\\include" -internal-isystem "C:\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\include" -internal-isystem "C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.8\\include\\um" -internal-isystem "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.19041.0\\ucrt" -internal-isystem "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.19041.0\\shared" -internal-isystem "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.19041.0\\um" -internal-isystem "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.19041.0\\winrt" -internal-isystem "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.19041.0\\cppwinrt" -fdeprecated-macro -ferror-limit 19 -fno-use-cxa-atexit -fms-extensions -fms-compatibility -fms-compatibility-version=19.29.30159 -std=c++14 -fskip-odr-check-in-gmf -fdelayed-template-parsing -fcxx-exceptions -fexceptions -no-round-trip-args -faddrsig -x c++ "C:\\clangd-test\\main.cpp"
# | V[11:55:18.805] Building first preamble for C:\clangd-test\main.cpp version 1
# | E[11:55:18.807] VFS: failed to set CWD to C:\clangd-test: no such file or directory
# | I[11:55:18.829] Built preamble of size 266828 for file C:\clangd-test\main.cpp version 1 in 0.02 seconds
# | V[11:55:18.829] indexed preamble AST for C:\clangd-test\main.cpp version 1:
# | symbol slab: 0 symbols, 128 bytes
# | ref slab: 0 symbols, 0 refs, 136 bytes
# | relations slab: 0 relations, 24 bytes
# | E[11:55:18.831] VFS: failed to set CWD to C:\clangd-test: no such file or directory
# | V[11:55:18.861] indexed file AST for C:\clangd-test\main.cpp version 1:
# | symbol slab: 2 symbols, 4688 bytes
# | ref slab: 2 symbols, 2 refs, 4280 bytes
# | relations slab: 0 relations, 24 bytes
# | V[11:55:18.861] Build dynamic index for main-file symbols with estimated memory usage of 12056 bytes
# | I[11:55:18.861] --> textDocument/publishDiagnostics
# | V[11:55:18.861] >>> {
# | "jsonrpc": "2.0",
# | "method": "textDocument/publishDiagnostics",
# | "params": {
# | "diagnostics": [],
# | "uri": "file:///C:/clangd-test/main.cpp",
# | "version": 1
# | }
# | }
# |
# | V[11:55:18.861] <<< {
# | "id": 2,
# | "jsonrpc": "2.0",
# | "method": "textDocument/documentSymbol",
# | "params": {
# | "textDocument": {
# | "uri": "test:///main.cpp"
# | }
# | }
# | }
# |
# | I[11:55:18.861] <-- textDocument/documentSymbol(2)
# | V[11:55:18.861] ASTWorker running DocumentSymbols on version 1 of C:\clangd-test\main.cpp
# | I[11:55:18.861] --> reply:textDocument/documentSymbol(2) 0 ms
# | V[11:55:18.861] >>> {
# | "id": 2,
# | "jsonrpc": "2.0",
# | "result": [
# | {
# | "children": [
# | {
# | "detail": "void () const",
# | "kind": 6,
# | "name": "f",
# | "range": {
# | "end": {
# | "character": 27,
# | "line": 1
# | },
# | "start": {
# | "character": 1,
# | "line": 1
# | }
# | },
# | "selectionRange": {
# | "end": {
# | "character": 15,
# | "line": 1
# | },
# | "start": {
# | "character": 14,
# | "line": 1
# | }
# | },
# | "tags": [
# | 2,
# | 9,
# | 20
# | ]
# | }
# | ],
# | "detail": "class",
# | "kind": 5,
# | "name": "A",
# | "range": {
# | "end": {
# | "character": 1,
# | "line": 2
# | },
# | "start": {
# | "character": 0,
# | "line": 0
# | }
# | },
# | "selectionRange": {
# | "end": {
# | "character": 7,
# | "line": 0
# | },
# | "start": {
# | "character": 6,
# | "line": 0
# | }
# | },
# | "tags": [
# | 9,
# | 18,
# | 19
# | ]
# | }
# | ]
# | }
# |
# | V[11:55:18.861] <<< {
# | "id": 3,
# | "jsonrpc": "2.0",
# | "method": "shutdown"
# | }
# |
# | I[11:55:18.861] <-- shutdown(3)
# | I[11:55:18.861] --> reply:shutdown(3) 0 ms
# | V[11:55:18.861] >>> {
# | "id": 3,
# | "jsonrpc": "2.0",
# | "result": null
# | }
# |
# | V[11:55:18.861] <<< {
# | "jsonrpc": "2.0",
# | "method": "exit"
# | }
# |
# | I[11:55:18.861] <-- exit
# | I[11:55:18.861] LSP finished, exiting with status 0
# `-----------------------------
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\symbol-tags.test'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\symbol-tags.test:44:10: error: CHECK: expected string not found in input
# | # CHECK: 15,
# | ^
# | <stdin>:183:4: note: scanning from here
# | 9,
# | ^
# | <stdin>:189:10: note: possible intended match here
# | "kind": 5,
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\symbol-tags.test
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 178: "line": 1
# | 179: }
# | 180: },
# | 181: "tags": [
# | 182: 2,
# | 183: 9,
# | check:44'0 X error: no match found
# | 184: 20
# | check:44'0 ~~~~
# | 185: ]
# | check:44'0 ~~~
# | 186: }
# | check:44'0 ~~~
# | 187: ],
# | check:44'0 ~~~~
# | 188: "detail": "class",
# | check:44'0 ~~~~~~~~~~~~~~~~~~~~
# | 189: "kind": 5,
# | check:44'0 ~~~~~~~~~~~~
# | check:44'1 ? possible intended match
# | 190: "name": "A",
# | check:44'0 ~~~~~~~~~~~~~~
# | 191: "range": {
# | check:44'0 ~~~~~~~~~~~~
# | 192: "end": {
# | check:44'0 ~~~~~~~~~~
# | 193: "character": 1,
# | check:44'0 ~~~~~~~~~~~~~~~~~
# | 194: "line": 2
# | check:44'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/181997
More information about the cfe-commits
mailing list