[clang-tools-extra] Determine the access method to a referenced symbol. (PR #172462)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 26 08:07:25 PST 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 3030 tests passed
* 29 tests skipped
* 5 tests failed
## Failed Tests
(click on a test name to see its output)
### Clangd
<details>
<summary>Clangd.Clangd/call-hierarchy.test</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
clangd -lit-test < C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\call-hierarchy.test | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -strict-whitespace C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\call-hierarchy.test
# executed command: clangd -lit-test
# .---command stderr------------
# | I[16:06:31.073] clangd version 23.0.0git (https://github.com/llvm/llvm-project e73bba9e8969bb0b783963153b4d8ec47782ba01)
# | I[16:06:31.074] Features: windows+debug
# | I[16:06:31.075] PID: 29036
# | I[16:06:31.075] Working directory: C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\clangd\test
# | I[16:06:31.075] argv[0]: clangd.exe
# | I[16:06:31.075] argv[1]: -lit-test
# | I[16:06:31.075] Starting LSP over stdin/stdout
# | V[16:06:31.075] <<< {
# | "id": 0,
# | "jsonrpc": "2.0",
# | "method": "initialize",
# | "params": {
# | "capabilities": {},
# | "processId": 123,
# | "rootPath": "clangd",
# | "trace": "off"
# | }
# | }
# |
# | I[16:06:31.075] <-- initialize(0)
# | I[16:06:31.518] --> reply:initialize(0) 442 ms
# | V[16:06:31.518] >>> {
# | "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 e73bba9e8969bb0b783963153b4d8ec47782ba01) windows+debug x86_64-pc-windows-msvc"
# | }
# | }
# | }
# |
# | V[16:06:31.518] <<< {
# | "jsonrpc": "2.0",
# | "method": "textDocument/didOpen",
# | "params": {
# | "textDocument": {
# | "languageId": "cpp",
# | "text": "void callee(int);\nvoid caller1() {\n callee(42);\n}\nvoid caller2() {\n caller1();\n caller1();\n}\nvoid caller3() {\n caller1();\n caller2();\n}\n",
# | "uri": "test:///main.cpp",
# | "version": 1
# | }
# | }
# | }
# |
# | I[16:06:31.518] <-- textDocument/didOpen
# | I[16:06:31.520] Failed to find compilation database for C:\clangd-test\main.cpp
# | I[16:06:31.521] 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[16:06:31.521] VFS: failed to set CWD to C:\clangd-test: no such file or directory
# | V[16:06:31.523] 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[16:06:31.523] Building first preamble for C:\clangd-test\main.cpp version 1
# | E[16:06:31.524] VFS: failed to set CWD to C:\clangd-test: no such file or directory
# | I[16:06:31.543] Built preamble of size 266644 for file C:\clangd-test\main.cpp version 1 in 0.02 seconds
# | V[16:06:31.544] 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[16:06:31.544] VFS: failed to set CWD to C:\clangd-test: no such file or directory
# | V[16:06:31.583] indexed file AST for C:\clangd-test\main.cpp version 1:
# | symbol slab: 4 symbols, 5152 bytes
# | ref slab: 4 symbols, 9 refs, 4328 bytes
# | relations slab: 0 relations, 24 bytes
# | V[16:06:31.583] Build dynamic index for main-file symbols with estimated memory usage of 13256 bytes
# | I[16:06:31.583] --> textDocument/publishDiagnostics
# | V[16:06:31.583] >>> {
# | "jsonrpc": "2.0",
# | "method": "textDocument/publishDiagnostics",
# | "params": {
# | "diagnostics": [],
# | "uri": "file:///C:/clangd-test/main.cpp",
# | "version": 1
# | }
# | }
# |
# | V[16:06:31.583] <<< {
# | "id": 1,
# | "jsonrpc": "2.0",
# | "method": "textDocument/prepareCallHierarchy",
# | "params": {
# | "position": {
# | "character": 8,
# | "line": 0
# | },
# | "textDocument": {
# | "uri": "test:///main.cpp"
# | }
# | }
# | }
# |
# | I[16:06:31.583] <-- textDocument/prepareCallHierarchy(1)
# | V[16:06:31.583] ASTWorker running CallHierarchy on version 1 of C:\clangd-test\main.cpp
# | I[16:06:31.583] --> reply:textDocument/prepareCallHierarchy(1) 0 ms
# | V[16:06:31.583] >>> {
# | "id": 1,
# | "jsonrpc": "2.0",
# | "result": [
# | {
# | "data": "F0E64FE3F8FEA480",
# | "detail": "callee",
# | "kind": 12,
# | "name": "callee",
# | "range": {
# | "end": {
# | "character": 16,
# | "line": 0
# | },
# | "start": {
# | "character": 0,
# | "line": 0
# | }
# | },
# | "selectionRange": {
# | "end": {
# | "character": 11,
# | "line": 0
# | },
# | "start": {
# | "character": 5,
# | "line": 0
# | }
# | },
# | "uri": "file:///C:/clangd-test/main.cpp"
# | }
# | ]
# | }
# |
# | V[16:06:31.583] <<< {
# | "id": 3,
# | "jsonrpc": "2.0",
# | "method": "shutdown"
# | }
# |
# | I[16:06:31.583] <-- shutdown(3)
# | I[16:06:31.583] --> reply:shutdown(3) 0 ms
# | V[16:06:31.583] >>> {
# | "id": 3,
# | "jsonrpc": "2.0",
# | "result": null
# | }
# |
# | V[16:06:31.583] <<< {
# | "jsonrpc": "2.0",
# | "method": "exit"
# | }
# |
# | I[16:06:31.583] <-- exit
# | I[16:06:31.583] LSP finished, exiting with status 0
# `-----------------------------
# 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\call-hierarchy.test'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\call-hierarchy.test:12:20: error: CHECK-NEXT: is not on the line after the previous match
# | # CHECK-NEXT: "kind": 12,
# | ^
# | <stdin>:158:7: note: 'next' match was here
# | "kind": 12,
# | ^
# | <stdin>:156:34: note: previous match ended here
# | "data": "F0E64FE3F8FEA480",
# | ^
# | <stdin>:157:1: note: non-matching line after previous match is here
# | "detail": "callee",
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\call-hierarchy.test
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 153: "jsonrpc": "2.0",
# | 154: "result": [
# | 155: {
# | 156: "data": "F0E64FE3F8FEA480",
# | 157: "detail": "callee",
# | 158: "kind": 12,
# | next:12 !~~~~~~~~~~ error: match on wrong line
# | 159: "name": "callee",
# | 160: "range": {
# | 161: "end": {
# | 162: "character": 16,
# | 163: "line": 0
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clangd.Clangd/type-hierarchy-ext.test</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
clangd -lit-test < C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\type-hierarchy-ext.test | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -strict-whitespace C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\type-hierarchy-ext.test
# executed command: clangd -lit-test
# .---command stderr------------
# | I[16:06:31.326] clangd version 23.0.0git (https://github.com/llvm/llvm-project e73bba9e8969bb0b783963153b4d8ec47782ba01)
# | I[16:06:31.328] Features: windows+debug
# | I[16:06:31.328] PID: 33280
# | I[16:06:31.328] Working directory: C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\clangd\test
# | I[16:06:31.328] argv[0]: clangd.exe
# | I[16:06:31.328] argv[1]: -lit-test
# | I[16:06:31.328] Starting LSP over stdin/stdout
# | V[16:06:31.328] <<< {
# | "id": 0,
# | "jsonrpc": "2.0",
# | "method": "initialize",
# | "params": {
# | "capabilities": {},
# | "processId": 123,
# | "rootPath": "clangd",
# | "trace": "off"
# | }
# | }
# |
# | I[16:06:31.328] <-- initialize(0)
# | I[16:06:31.688] --> reply:initialize(0) 360 ms
# | V[16:06:31.689] >>> {
# | "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 e73bba9e8969bb0b783963153b4d8ec47782ba01) windows+debug x86_64-pc-windows-msvc"
# | }
# | }
# | }
# |
# | V[16:06:31.689] <<< {
# | "jsonrpc": "2.0",
# | "method": "textDocument/didOpen",
# | "params": {
# | "textDocument": {
# | "languageId": "cpp",
# | "text": "struct Parent {};\nstruct Child1 : Parent {};\nstruct Child2 : Child1 {};\nstruct Child3 : Child2 {};\nstruct Child4 : Child3 {};",
# | "uri": "test:///main.cpp",
# | "version": 1
# | }
# | }
# | }
# |
# | I[16:06:31.689] <-- textDocument/didOpen
# | I[16:06:31.693] Failed to find compilation database for C:\clangd-test\main.cpp
# | I[16:06:31.693] 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[16:06:31.696] VFS: failed to set CWD to C:\clangd-test: no such file or directory
# | V[16:06:31.698] 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[16:06:31.698] Building first preamble for C:\clangd-test\main.cpp version 1
# | E[16:06:31.699] VFS: failed to set CWD to C:\clangd-test: no such file or directory
# | I[16:06:31.723] Built preamble of size 266644 for file C:\clangd-test\main.cpp version 1 in 0.02 seconds
# | V[16:06:31.723] 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[16:06:31.725] VFS: failed to set CWD to C:\clangd-test: no such file or directory
# | V[16:06:31.755] indexed file AST for C:\clangd-test\main.cpp version 1:
# | symbol slab: 5 symbols, 5384 bytes
# | ref slab: 5 symbols, 9 refs, 4376 bytes
# | relations slab: 4 relations, 92 bytes
# | V[16:06:31.755] Build dynamic index for main-file symbols with estimated memory usage of 16328 bytes
# | I[16:06:31.755] --> textDocument/publishDiagnostics
# | V[16:06:31.755] >>> {
# | "jsonrpc": "2.0",
# | "method": "textDocument/publishDiagnostics",
# | "params": {
# | "diagnostics": [],
# | "uri": "file:///C:/clangd-test/main.cpp",
# | "version": 1
# | }
# | }
# |
# | V[16:06:31.755] <<< {
# | "id": 1,
# | "jsonrpc": "2.0",
# | "method": "textDocument/typeHierarchy",
# | "params": {
# | "direction": 2,
# | "position": {
# | "character": 11,
# | "line": 2
# | },
# | "resolve": 1,
# | "textDocument": {
# | "uri": "test:///main.cpp"
# | }
# | }
# | }
# |
# | I[16:06:31.755] <-- textDocument/typeHierarchy(1)
# | V[16:06:31.755] ASTWorker running TypeHierarchy on version 1 of C:\clangd-test\main.cpp
# | I[16:06:31.756] --> reply:textDocument/typeHierarchy(1) 0 ms
# | V[16:06:31.756] >>> {
# | "id": 1,
# | "jsonrpc": "2.0",
# | "result": {
# | "children": [
# | {
# | "data": {
# | "symbolID": "A6576FE083F2949A"
# | },
# | "detail": "Child3",
# | "kind": 23,
# | "name": "Child3",
# | "range": {
# | "end": {
# | "character": 13,
# | "line": 3
# | },
# | "start": {
# | "character": 7,
# | "line": 3
# | }
# | },
# | "selectionRange": {
# | "end": {
# | "character": 13,
# | "line": 3
# | },
# | "start": {
# | "character": 7,
# | "line": 3
# | }
# | },
# | "uri": "file:///C:/clangd-test/main.cpp"
# | }
# | ],
# | "data": {
# | "parents": [
# | {
# | "parents": [
# | {
# | "parents": [],
# | "symbolID": "FE546E7B648D69A7"
# | }
# | ],
# | "symbolID": "ECDC0C46D75120F4"
# | }
# | ],
# | "symbolID": "8A991335E4E67D08"
# | },
# | "detail": "Child2",
# | "kind": 23,
# | "name": "Child2",
# | "parents": [
# | {
# | "data": {
# | "parents": [
# | {
# | "parents": [],
# | "symbolID": "FE546E7B648D69A7"
# | }
# | ],
# | "symbolID": "ECDC0C46D75120F4"
# | },
# | "detail": "Child1",
# | "kind": 23,
# | "name": "Child1",
# | "parents": [
# | {
# | "data": {
# | "parents": [],
# | "symbolID": "FE546E7B648D69A7"
# | },
# | "detail": "Parent",
# | "kind": 23,
# | "name": "Parent",
# | "parents": [],
# | "range": {
# | "end": {
# | "character": 16,
# | "line": 0
# | },
# | "start": {
# | "character": 0,
# | "line": 0
# | }
# | },
# | "selectionRange": {
# | "end": {
# | "character": 13,
# | "line": 0
# | },
# | "start": {
# | "character": 7,
# | "line": 0
# | }
# | },
# | "uri": "file:///C:/clangd-test/main.cpp"
# | }
# | ],
# | "range": {
# | "end": {
# | "character": 25,
# | "line": 1
# | },
# | "start": {
# | "character": 0,
# | "line": 1
# | }
# | },
# | "selectionRange": {
# | "end": {
# | "character": 13,
# | "line": 1
# | },
# | "start": {
# | "character": 7,
# | "line": 1
# | }
# | },
# | "uri": "file:///C:/clangd-test/main.cpp"
# | }
# | ],
# | "range": {
# | "end": {
# | "character": 25,
# | "line": 2
# | },
# | "start": {
# | "character": 0,
# | "line": 2
# | }
# | },
# | "selectionRange": {
# | "end": {
# | "character": 13,
# | "line": 2
# | },
# | "start": {
# | "character": 7,
# | "line": 2
# | }
# | },
# | "uri": "file:///C:/clangd-test/main.cpp"
# | }
# | }
# |
# | V[16:06:31.756] <<< {
# | "id": 2,
# | "jsonrpc": "2.0",
# | "method": "typeHierarchy/resolve",
# | "params": {
# | "direction": 0,
# | "item": {
# | "data": {
# | "symbolID": "A6576FE083F2949A"
# | },
# | "kind": 23,
# | "name": "Child3",
# | "range": {
# | "end": {
# | "character": 13,
# | "line": 3
# | },
# | "start": {
# | "character": 7,
# | "line": 3
# | }
# | },
# | "selectionRange": {
# | "end": {
# | "character": 13,
# | "line": 3
# | },
# | "start": {
# | "character": 7,
# | "line": 3
# | }
# | },
# | "uri": "test:///main.cpp"
# | },
# | "resolve": 1
# | }
# | }
# |
# | I[16:06:31.756] <-- typeHierarchy/resolve(2)
# | I[16:06:31.756] --> reply:typeHierarchy/resolve(2) 0 ms
# | V[16:06:31.756] >>> {
# | "id": 2,
# | "jsonrpc": "2.0",
# | "result": {
# | "children": [
# | {
# | "data": {
# | "symbolID": "5705B382DFC77CBC"
# | },
# | "detail": "Child4",
# | "kind": 23,
# | "name": "Child4",
# | "range": {
# | "end": {
# | "character": 13,
# | "line": 4
# | },
# | "start": {
# | "character": 7,
# | "line": 4
# | }
# | },
# | "selectionRange": {
# | "end": {
# | "character": 13,
# | "line": 4
# | },
# | "start": {
# | "character": 7,
# | "line": 4
# | }
# | },
# | "uri": "file:///C:/clangd-test/main.cpp"
# | }
# | ],
# | "data": {
# | "symbolID": "A6576FE083F2949A"
# | },
# | "kind": 23,
# | "name": "Child3",
# | "range": {
# | "end": {
# | "character": 13,
# | "line": 3
# | },
# | "start": {
# | "character": 7,
# | "line": 3
# | }
# | },
# | "selectionRange": {
# | "end": {
# | "character": 13,
# | "line": 3
# | },
# | "start": {
# | "character": 7,
# | "line": 3
# | }
# | },
# | "uri": "file:///C:/clangd-test/main.cpp"
# | }
# | }
# |
# | V[16:06:31.756] <<< {
# | "id": 3,
# | "jsonrpc": "2.0",
# | "method": "shutdown"
# | }
# |
# | I[16:06:31.756] <-- shutdown(3)
# | I[16:06:31.756] --> reply:shutdown(3) 0 ms
# | V[16:06:31.756] >>> {
# | "id": 3,
# | "jsonrpc": "2.0",
# | "result": null
# | }
# |
# | V[16:06:31.756] <<< {
# | "jsonrpc": "2.0",
# | "method": "exit"
# | }
# |
# | I[16:06:31.756] <-- exit
# | I[16:06:31.756] LSP finished, exiting with status 0
# `-----------------------------
# 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\type-hierarchy-ext.test'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\type-hierarchy-ext.test:55:18: error: CHECK-NEXT: is not on the line after the previous match
# | # CHECK-NEXT: "kind": 23,
# | ^
# | <stdin>:201:5: note: 'next' match was here
# | "kind": 23,
# | ^
# | <stdin>:199:7: note: previous match ended here
# | },
# | ^
# | <stdin>:200:1: note: non-matching line after previous match is here
# | "detail": "Child2",
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\type-hierarchy-ext.test
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 196: }
# | 197: ],
# | 198: "symbolID": "8A991335E4E67D08"
# | 199: },
# | 200: "detail": "Child2",
# | 201: "kind": 23,
# | next:55 !~~~~~~~~~~ error: match on wrong line
# | 202: "name": "Child2",
# | 203: "parents": [
# | 204: {
# | 205: "data": {
# | 206: "parents": [
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clangd.Clangd/type-hierarchy.test</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
clangd -lit-test < C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\type-hierarchy.test | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -strict-whitespace C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\type-hierarchy.test
# executed command: clangd -lit-test
# .---command stderr------------
# | I[16:06:31.023] clangd version 23.0.0git (https://github.com/llvm/llvm-project e73bba9e8969bb0b783963153b4d8ec47782ba01)
# | I[16:06:31.025] Features: windows+debug
# | I[16:06:31.025] PID: 25272
# | I[16:06:31.025] Working directory: C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\clangd\test
# | I[16:06:31.025] argv[0]: clangd.exe
# | I[16:06:31.025] argv[1]: -lit-test
# | I[16:06:31.025] Starting LSP over stdin/stdout
# | V[16:06:31.025] <<< {
# | "id": 0,
# | "jsonrpc": "2.0",
# | "method": "initialize",
# | "params": {
# | "capabilities": {},
# | "processId": 123,
# | "rootPath": "clangd",
# | "trace": "off"
# | }
# | }
# |
# | I[16:06:31.025] <-- initialize(0)
# | I[16:06:31.472] --> reply:initialize(0) 447 ms
# | V[16:06:31.473] >>> {
# | "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 e73bba9e8969bb0b783963153b4d8ec47782ba01) windows+debug x86_64-pc-windows-msvc"
# | }
# | }
# | }
# |
# | V[16:06:31.473] <<< {
# | "jsonrpc": "2.0",
# | "method": "textDocument/didOpen",
# | "params": {
# | "textDocument": {
# | "languageId": "cpp",
# | "text": "struct Parent {};\nstruct Child1 : Parent {};\nstruct Child2 : Child1 {};\nstruct Child3 : Child2 {};\nstruct Child4 : Child3 {};",
# | "uri": "test:///main.cpp",
# | "version": 1
# | }
# | }
# | }
# |
# | I[16:06:31.473] <-- textDocument/didOpen
# | I[16:06:31.476] Failed to find compilation database for C:\clangd-test\main.cpp
# | I[16:06:31.476] 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[16:06:31.477] VFS: failed to set CWD to C:\clangd-test: no such file or directory
# | V[16:06:31.479] 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[16:06:31.479] Building first preamble for C:\clangd-test\main.cpp version 1
# | E[16:06:31.480] VFS: failed to set CWD to C:\clangd-test: no such file or directory
# | I[16:06:31.502] Built preamble of size 266644 for file C:\clangd-test\main.cpp version 1 in 0.02 seconds
# | V[16:06:31.502] 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[16:06:31.503] VFS: failed to set CWD to C:\clangd-test: no such file or directory
# | V[16:06:31.532] indexed file AST for C:\clangd-test\main.cpp version 1:
# | symbol slab: 5 symbols, 5384 bytes
# | ref slab: 5 symbols, 9 refs, 4376 bytes
# | relations slab: 4 relations, 92 bytes
# | V[16:06:31.532] Build dynamic index for main-file symbols with estimated memory usage of 16328 bytes
# | I[16:06:31.532] --> textDocument/publishDiagnostics
# | V[16:06:31.532] >>> {
# | "jsonrpc": "2.0",
# | "method": "textDocument/publishDiagnostics",
# | "params": {
# | "diagnostics": [],
# | "uri": "file:///C:/clangd-test/main.cpp",
# | "version": 1
# | }
# | }
# |
# | V[16:06:31.532] <<< {
# | "id": 1,
# | "jsonrpc": "2.0",
# | "method": "textDocument/prepareTypeHierarchy",
# | "params": {
# | "direction": 2,
# | "position": {
# | "character": 11,
# | "line": 2
# | },
# | "resolve": 1,
# | "textDocument": {
# | "uri": "test:///main.cpp"
# | }
# | }
# | }
# |
# | I[16:06:31.532] <-- textDocument/prepareTypeHierarchy(1)
# | V[16:06:31.532] ASTWorker running TypeHierarchy on version 1 of C:\clangd-test\main.cpp
# | I[16:06:31.532] --> reply:textDocument/prepareTypeHierarchy(1) 0 ms
# | V[16:06:31.532] >>> {
# | "id": 1,
# | "jsonrpc": "2.0",
# | "result": [
# | {
# | "data": {
# | "parents": [
# | {
# | "parents": [
# | {
# | "parents": [],
# | "symbolID": "FE546E7B648D69A7"
# | }
# | ],
# | "symbolID": "ECDC0C46D75120F4"
# | }
# | ],
# | "symbolID": "8A991335E4E67D08"
# | },
# | "detail": "Child2",
# | "kind": 23,
# | "name": "Child2",
# | "range": {
# | "end": {
# | "character": 25,
# | "line": 2
# | },
# | "start": {
# | "character": 0,
# | "line": 2
# | }
# | },
# | "selectionRange": {
# | "end": {
# | "character": 13,
# | "line": 2
# | },
# | "start": {
# | "character": 7,
# | "line": 2
# | }
# | },
# | "uri": "file:///C:/clangd-test/main.cpp"
# | }
# | ]
# | }
# |
# | V[16:06:31.532] <<< {
# | "id": 2,
# | "jsonrpc": "2.0",
# | "method": "typeHierarchy/supertypes",
# | "params": {
# | "item": {
# | "data": {
# | "parents": [
# | {
# | "parents": [
# | {
# | "parents": [],
# | "symbolID": "FE546E7B648D69A7"
# | }
# | ],
# | "symbolID": "ECDC0C46D75120F4"
# | }
# | ],
# | "symbolID": "8A991335E4E67D08"
# | },
# | "kind": 23,
# | "name": "Child2",
# | "range": {
# | "end": {
# | "character": 13,
# | "line": 3
# | },
# | "start": {
# | "character": 7,
# | "line": 3
# | }
# | },
# | "selectionRange": {
# | "end": {
# | "character": 13,
# | "line": 3
# | },
# | "start": {
# | "character": 7,
# | "line": 3
# | }
# | },
# | "uri": "test:///main.cpp"
# | }
# | }
# | }
# |
# | I[16:06:31.532] <-- typeHierarchy/supertypes(2)
# | I[16:06:31.532] --> reply:typeHierarchy/supertypes(2) 0 ms
# | V[16:06:31.532] >>> {
# | "id": 2,
# | "jsonrpc": "2.0",
# | "result": [
# | {
# | "data": {
# | "parents": [
# | {
# | "parents": [],
# | "symbolID": "FE546E7B648D69A7"
# | }
# | ],
# | "symbolID": "ECDC0C46D75120F4"
# | },
# | "detail": "Child1",
# | "kind": 23,
# | "name": "Child1",
# | "range": {
# | "end": {
# | "character": 13,
# | "line": 1
# | },
# | "start": {
# | "character": 7,
# | "line": 1
# | }
# | },
# | "selectionRange": {
# | "end": {
# | "character": 13,
# | "line": 1
# | },
# | "start": {
# | "character": 7,
# | "line": 1
# | }
# | },
# | "uri": "file:///C:/clangd-test/main.cpp"
# | }
# | ]
# | }
# |
# | V[16:06:31.532] <<< {
# | "id": 2,
# | "jsonrpc": "2.0",
# | "method": "typeHierarchy/subtypes",
# | "params": {
# | "item": {
# | "data": {
# | "parents": [
# | {
# | "parents": [
# | {
# | "parents": [],
# | "symbolID": "FE546E7B648D69A7"
# | }
# | ],
# | "symbolID": "ECDC0C46D75120F4"
# | }
# | ],
# | "symbolID": "8A991335E4E67D08"
# | },
# | "kind": 23,
# | "name": "Child2",
# | "range": {
# | "end": {
# | "character": 13,
# | "line": 3
# | },
# | "start": {
# | "character": 7,
# | "line": 3
# | }
# | },
# | "selectionRange": {
# | "end": {
# | "character": 13,
# | "line": 3
# | },
# | "start": {
# | "character": 7,
# | "line": 3
# | }
# | },
# | "uri": "test:///main.cpp"
# | }
# | }
# | }
# |
# | I[16:06:31.532] <-- typeHierarchy/subtypes(2)
# | I[16:06:31.533] --> reply:typeHierarchy/subtypes(2) 0 ms
# | V[16:06:31.533] >>> {
# | "id": 2,
# | "jsonrpc": "2.0",
# | "result": [
# | {
# | "data": {
# | "parents": [
# | {
# | "parents": [
# | {
# | "parents": [
# | {
# | "parents": [],
# | "symbolID": "FE546E7B648D69A7"
# | }
# | ],
# | "symbolID": "ECDC0C46D75120F4"
# | }
# | ],
# | "symbolID": "8A991335E4E67D08"
# | }
# | ],
# | "symbolID": "A6576FE083F2949A"
# | },
# | "detail": "Child3",
# | "kind": 23,
# | "name": "Child3",
# | "range": {
# | "end": {
# | "character": 13,
# | "line": 3
# | },
# | "start": {
# | "character": 7,
# | "line": 3
# | }
# | },
# | "selectionRange": {
# | "end": {
# | "character": 13,
# | "line": 3
# | },
# | "start": {
# | "character": 7,
# | "line": 3
# | }
# | },
# | "uri": "file:///C:/clangd-test/main.cpp"
# | }
# | ]
# | }
# |
# | V[16:06:31.533] <<< {
# | "id": 3,
# | "jsonrpc": "2.0",
# | "method": "shutdown"
# | }
# |
# | I[16:06:31.533] <-- shutdown(3)
# | I[16:06:31.533] --> reply:shutdown(3) 0 ms
# | V[16:06:31.533] >>> {
# | "id": 3,
# | "jsonrpc": "2.0",
# | "result": null
# | }
# |
# | V[16:06:31.533] <<< {
# | "jsonrpc": "2.0",
# | "method": "exit"
# | }
# |
# | I[16:06:31.533] <-- exit
# | I[16:06:31.533] LSP finished, exiting with status 0
# `-----------------------------
# 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\type-hierarchy.test'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\type-hierarchy.test:25:21: error: CHECK-NEXT: is not on the line after the previous match
# | # CHECK-NEXT: "kind": 23,
# | ^
# | <stdin>:171:7: note: 'next' match was here
# | "kind": 23,
# | ^
# | <stdin>:169:9: note: previous match ended here
# | },
# | ^
# | <stdin>:170:1: note: non-matching line after previous match is here
# | "detail": "Child2",
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\type-hierarchy.test
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 166: }
# | 167: ],
# | 168: "symbolID": "8A991335E4E67D08"
# | 169: },
# | 170: "detail": "Child2",
# | 171: "kind": 23,
# | next:25 !~~~~~~~~~~ error: match on wrong line
# | 172: "name": "Child2",
# | 173: "range": {
# | 174: "end": {
# | 175: "character": 25,
# | 176: "line": 2
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
### Clangd Unit Tests
<details>
<summary>Clangd Unit Tests._/ClangdTests_exe/CallHierarchy/IncomingMultiFileObjC</summary>
```
Script:
--
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\clangd\unittests\.\ClangdTests.exe --gtest_filter=CallHierarchy.IncomingMultiFileObjC
--
C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\unittests\CallHierarchyTests.cpp:559
Value of: IncomingLevel1
Expected: has 1 element that (is an object whose given field with name (N: "caller1")) and (is an object whose given field has 1 element and that element is equal to 5:21-5:27)
Actual: {}
C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\unittests\CallHierarchyTests.cpp:559
Value of: IncomingLevel1
Expected: has 1 element that (is an object whose given field with name (N: "caller1")) and (is an object whose given field has 1 element and that element is equal to 5:21-5:27)
Actual: {}
C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\unittests\CallHierarchyTests.cpp:567
Value of: IncomingLevel2
Expected: has 2 elements where
element #0 (is an object whose given field with name (N: "caller2")) and (is an object whose given field has 2 elements and there exists some permutation of elements such that:
- element #0 is equal to 5:22-5:29, and
- element #1 is equal to 6:22-6:29),
element #1 (is an object whose given field with name (N: "caller3")) and (is an object whose given field has 1 element and that element is equal to 5:22-5:29)
Actual: {}
```
</details>
<details>
<summary>Clangd Unit Tests._/ClangdTests_exe/CallHierarchy/MultiFileCpp</summary>
```
Script:
--
C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\clangd\unittests\.\ClangdTests.exe --gtest_filter=CallHierarchy.MultiFileCpp
--
C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\unittests\CallHierarchyTests.cpp:403
Value of: IncomingLevel1
Expected: has 1 element that (is an object whose given field (with name (N: "caller1")) and (with detail (N: "nsa::caller1"))) and (is an object whose given field has 1 element and that element is equal to 5:8-5:14)
Actual: {}
C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\unittests\CallHierarchyTests.cpp:403
Value of: IncomingLevel1
Expected: has 1 element that (is an object whose given field (with name (N: "caller1")) and (with detail (N: "nsa::caller1"))) and (is an object whose given field has 1 element and that element is equal to 5:8-5:14)
Actual: {}
C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\unittests\CallHierarchyTests.cpp:412
Value of: IncomingLevel2
Expected: has 2 elements where
element #0 (is an object whose given field (with name (N: "caller2")) and (with detail (N: "nsb::caller2"))) and (is an object whose given field has 2 elements and there exists some permutation of elements such that:
- element #0 is equal to 5:13-5:20, and
- element #1 is equal to 6:13-6:20),
element #1 (is an object whose given field (with name (N: "caller3")) and (with detail (N: "nsa::caller3"))) and (is an object whose given field has 1 element and that element is equal to 5:8-5:15)
Actual: {}
```
</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/172462
More information about the cfe-commits
mailing list