github-actions[bot] wrote: <!--PREMERGE ADVISOR COMMENT: Linux--> # :penguin: Linux x64 Test Results
* 3091 tests passed * 7 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 < /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/test/call-hierarchy.test | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -strict-whitespace /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/test/call-hierarchy.test # executed command: clangd -lit-test # .---command stderr------------ # | I[16:02:09.345] clangd version 23.0.0git (https://github.com/llvm/llvm-project e73bba9e8969bb0b783963153b4d8ec47782ba01) # | I[16:02:09.345] Features: linux+debug # | I[16:02:09.345] PID: 232300 # | I[16:02:09.345] Working directory: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/clangd/test # | I[16:02:09.345] argv[0]: clangd # | I[16:02:09.345] argv[1]: -lit-test # | I[16:02:09.345] Starting LSP over stdin/stdout # | V[16:02:09.345] <<< { # | "id": 0, # | "jsonrpc": "2.0", # | "method": "initialize", # | "params": { # | "capabilities": {}, # | "processId": 123, # | "rootPath": "clangd", # | "trace": "off" # | } # | } # | # | I[16:02:09.345] <-- initialize(0) # | I[16:02:09.346] --> reply:initialize(0) 0 ms # | V[16:02:09.346] >>> { # | "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) linux+debug x86_64-unknown-linux-gnu" # | } # | } # | } # | # | V[16:02:09.346] <<< { # | "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:02:09.346] <-- textDocument/didOpen # | I[16:02:09.346] Failed to find compilation database for /clangd-test/main.cpp # | I[16:02:09.346] ASTWorker building file /clangd-test/main.cpp version 1 with command clangd fallback # | [/clangd-test] # | /opt/llvm/bin/clang -resource-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23 -- /clangd-test/main.cpp # | E[16:02:09.346] VFS: failed to set CWD to /clangd-test: No such file or directory # | V[16:02:09.347] Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -clear-ast-before-backend -main-file-name main.cpp -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=all -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -debugger-tuning=gdb -fdebug-compilation-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/clangd/test -fcoverage-compilation-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/clangd/test -resource-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/backward -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -ferror-limit 19 -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -no-round-trip-args -faddrsig -fdwarf2-cfi-asm -x c++ /clangd-test/main.cpp # | V[16:02:09.347] Building first preamble for /clangd-test/main.cpp version 1 # | E[16:02:09.347] VFS: failed to set CWD to /clangd-test: No such file or directory # | I[16:02:09.353] Built preamble of size 248596 for file /clangd-test/main.cpp version 1 in 0.01 seconds # | V[16:02:09.353] indexed preamble AST for /clangd-test/main.cpp version 1: # | symbol slab: 0 symbols, 120 bytes # | ref slab: 0 symbols, 0 refs, 128 bytes # | relations slab: 0 relations, 24 bytes # | E[16:02:09.353] VFS: failed to set CWD to /clangd-test: No such file or directory # | V[16:02:09.364] indexed file AST for /clangd-test/main.cpp version 1: # | symbol slab: 4 symbols, 5144 bytes # | ref slab: 4 symbols, 9 refs, 4320 bytes # | relations slab: 0 relations, 24 bytes # | V[16:02:09.364] Build dynamic index for main-file symbols with estimated memory usage of 13240 bytes # | I[16:02:09.364] --> textDocument/publishDiagnostics # | V[16:02:09.364] >>> { # | "jsonrpc": "2.0", # | "method": "textDocument/publishDiagnostics", # | "params": { # | "diagnostics": [], # | "uri": "file:///clangd-test/main.cpp", # | "version": 1 # | } # | } # | # | V[16:02:09.364] <<< { # | "id": 1, # | "jsonrpc": "2.0", # | "method": "textDocument/prepareCallHierarchy", # | "params": { # | "position": { # | "character": 8, # | "line": 0 # | }, # | "textDocument": { # | "uri": "test:///main.cpp" # | } # | } # | } # | # | I[16:02:09.364] <-- textDocument/prepareCallHierarchy(1) # | V[16:02:09.364] ASTWorker running CallHierarchy on version 1 of /clangd-test/main.cpp # | I[16:02:09.364] --> reply:textDocument/prepareCallHierarchy(1) 0 ms # | V[16:02:09.365] >>> { # | "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:///clangd-test/main.cpp" # | } # | ] # | } # | # | V[16:02:09.365] <<< { # | "id": 3, # | "jsonrpc": "2.0", # | "method": "shutdown" # | } # | # | I[16:02:09.365] <-- shutdown(3) # | I[16:02:09.365] --> reply:shutdown(3) 0 ms # | V[16:02:09.365] >>> { # | "id": 3, # | "jsonrpc": "2.0", # | "result": null # | } # | # | V[16:02:09.365] <<< { # | "jsonrpc": "2.0", # | "method": "exit" # | } # | # | I[16:02:09.365] <-- exit # | I[16:02:09.365] LSP finished, exiting with status 0 # `----------------------------- # executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -strict-whitespace /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/test/call-hierarchy.test # .---command stderr------------ # | /home/gha/actions-runner/_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: /home/gha/actions-runner/_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 < /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/test/type-hierarchy-ext.test | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -strict-whitespace /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/test/type-hierarchy-ext.test # executed command: clangd -lit-test # .---command stderr------------ # | I[16:02:09.307] clangd version 23.0.0git (https://github.com/llvm/llvm-project e73bba9e8969bb0b783963153b4d8ec47782ba01) # | I[16:02:09.307] Features: linux+debug # | I[16:02:09.307] PID: 232161 # | I[16:02:09.307] Working directory: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/clangd/test # | I[16:02:09.307] argv[0]: clangd # | I[16:02:09.307] argv[1]: -lit-test # | I[16:02:09.307] Starting LSP over stdin/stdout # | V[16:02:09.307] <<< { # | "id": 0, # | "jsonrpc": "2.0", # | "method": "initialize", # | "params": { # | "capabilities": {}, # | "processId": 123, # | "rootPath": "clangd", # | "trace": "off" # | } # | } # | # | I[16:02:09.307] <-- initialize(0) # | I[16:02:09.307] --> reply:initialize(0) 0 ms # | V[16:02:09.307] >>> { # | "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) linux+debug x86_64-unknown-linux-gnu" # | } # | } # | } # | # | V[16:02:09.307] <<< { # | "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:02:09.307] <-- textDocument/didOpen # | I[16:02:09.308] Failed to find compilation database for /clangd-test/main.cpp # | I[16:02:09.308] ASTWorker building file /clangd-test/main.cpp version 1 with command clangd fallback # | [/clangd-test] # | /opt/llvm/bin/clang -resource-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23 -- /clangd-test/main.cpp # | E[16:02:09.308] VFS: failed to set CWD to /clangd-test: No such file or directory # | V[16:02:09.309] Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -clear-ast-before-backend -main-file-name main.cpp -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=all -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -debugger-tuning=gdb -fdebug-compilation-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/clangd/test -fcoverage-compilation-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/clangd/test -resource-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/backward -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -ferror-limit 19 -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -no-round-trip-args -faddrsig -fdwarf2-cfi-asm -x c++ /clangd-test/main.cpp # | V[16:02:09.309] Building first preamble for /clangd-test/main.cpp version 1 # | E[16:02:09.309] VFS: failed to set CWD to /clangd-test: No such file or directory # | I[16:02:09.315] Built preamble of size 248596 for file /clangd-test/main.cpp version 1 in 0.01 seconds # | V[16:02:09.315] indexed preamble AST for /clangd-test/main.cpp version 1: # | symbol slab: 0 symbols, 120 bytes # | ref slab: 0 symbols, 0 refs, 128 bytes # | relations slab: 0 relations, 24 bytes # | E[16:02:09.315] VFS: failed to set CWD to /clangd-test: No such file or directory # | V[16:02:09.325] indexed file AST for /clangd-test/main.cpp version 1: # | symbol slab: 5 symbols, 5376 bytes # | ref slab: 5 symbols, 9 refs, 4416 bytes # | relations slab: 4 relations, 92 bytes # | V[16:02:09.325] Build dynamic index for main-file symbols with estimated memory usage of 16360 bytes # | I[16:02:09.325] --> textDocument/publishDiagnostics # | V[16:02:09.325] >>> { # | "jsonrpc": "2.0", # | "method": "textDocument/publishDiagnostics", # | "params": { # | "diagnostics": [], # | "uri": "file:///clangd-test/main.cpp", # | "version": 1 # | } # | } # | # | V[16:02:09.325] <<< { # | "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:02:09.325] <-- textDocument/typeHierarchy(1) # | V[16:02:09.325] ASTWorker running TypeHierarchy on version 1 of /clangd-test/main.cpp # | I[16:02:09.326] --> reply:textDocument/typeHierarchy(1) 0 ms # | V[16:02:09.326] >>> { # | "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:///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:///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:///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:///clangd-test/main.cpp" # | } # | } # | # | V[16:02:09.326] <<< { # | "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:02:09.326] <-- typeHierarchy/resolve(2) # | I[16:02:09.326] --> reply:typeHierarchy/resolve(2) 0 ms # | V[16:02:09.326] >>> { # | "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:///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:///clangd-test/main.cpp" # | } # | } # | # | V[16:02:09.326] <<< { # | "id": 3, # | "jsonrpc": "2.0", # | "method": "shutdown" # | } # | # | I[16:02:09.326] <-- shutdown(3) # | I[16:02:09.326] --> reply:shutdown(3) 0 ms # | V[16:02:09.326] >>> { # | "id": 3, # | "jsonrpc": "2.0", # | "result": null # | } # | # | V[16:02:09.326] <<< { # | "jsonrpc": "2.0", # | "method": "exit" # | } # | # | I[16:02:09.326] <-- exit # | I[16:02:09.326] LSP finished, exiting with status 0 # `----------------------------- # executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -strict-whitespace /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/test/type-hierarchy-ext.test # .---command stderr------------ # | /home/gha/actions-runner/_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: /home/gha/actions-runner/_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 < /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/test/type-hierarchy.test | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -strict-whitespace /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/test/type-hierarchy.test # executed command: clangd -lit-test # .---command stderr------------ # | I[16:02:09.317] clangd version 23.0.0git (https://github.com/llvm/llvm-project e73bba9e8969bb0b783963153b4d8ec47782ba01) # | I[16:02:09.317] Features: linux+debug # | I[16:02:09.317] PID: 232197 # | I[16:02:09.317] Working directory: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/clangd/test # | I[16:02:09.317] argv[0]: clangd # | I[16:02:09.317] argv[1]: -lit-test # | I[16:02:09.317] Starting LSP over stdin/stdout # | V[16:02:09.317] <<< { # | "id": 0, # | "jsonrpc": "2.0", # | "method": "initialize", # | "params": { # | "capabilities": {}, # | "processId": 123, # | "rootPath": "clangd", # | "trace": "off" # | } # | } # | # | I[16:02:09.317] <-- initialize(0) # | I[16:02:09.317] --> reply:initialize(0) 0 ms # | V[16:02:09.317] >>> { # | "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) linux+debug x86_64-unknown-linux-gnu" # | } # | } # | } # | # | V[16:02:09.317] <<< { # | "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:02:09.317] <-- textDocument/didOpen # | I[16:02:09.318] Failed to find compilation database for /clangd-test/main.cpp # | I[16:02:09.318] ASTWorker building file /clangd-test/main.cpp version 1 with command clangd fallback # | [/clangd-test] # | /opt/llvm/bin/clang -resource-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23 -- /clangd-test/main.cpp # | E[16:02:09.318] VFS: failed to set CWD to /clangd-test: No such file or directory # | V[16:02:09.319] Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -clear-ast-before-backend -main-file-name main.cpp -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=all -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -debugger-tuning=gdb -fdebug-compilation-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/clangd/test -fcoverage-compilation-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/clangd/test -resource-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/backward -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -ferror-limit 19 -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -no-round-trip-args -faddrsig -fdwarf2-cfi-asm -x c++ /clangd-test/main.cpp # | V[16:02:09.319] Building first preamble for /clangd-test/main.cpp version 1 # | E[16:02:09.319] VFS: failed to set CWD to /clangd-test: No such file or directory # | I[16:02:09.324] Built preamble of size 248596 for file /clangd-test/main.cpp version 1 in 0.01 seconds # | V[16:02:09.324] indexed preamble AST for /clangd-test/main.cpp version 1: # | symbol slab: 0 symbols, 120 bytes # | ref slab: 0 symbols, 0 refs, 128 bytes # | relations slab: 0 relations, 24 bytes # | E[16:02:09.324] VFS: failed to set CWD to /clangd-test: No such file or directory # | V[16:02:09.336] indexed file AST for /clangd-test/main.cpp version 1: # | symbol slab: 5 symbols, 5376 bytes # | ref slab: 5 symbols, 9 refs, 4416 bytes # | relations slab: 4 relations, 92 bytes # | V[16:02:09.336] Build dynamic index for main-file symbols with estimated memory usage of 16360 bytes # | I[16:02:09.336] --> textDocument/publishDiagnostics # | V[16:02:09.336] >>> { # | "jsonrpc": "2.0", # | "method": "textDocument/publishDiagnostics", # | "params": { # | "diagnostics": [], # | "uri": "file:///clangd-test/main.cpp", # | "version": 1 # | } # | } # | # | V[16:02:09.336] <<< { # | "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:02:09.336] <-- textDocument/prepareTypeHierarchy(1) # | V[16:02:09.336] ASTWorker running TypeHierarchy on version 1 of /clangd-test/main.cpp # | I[16:02:09.336] --> reply:textDocument/prepareTypeHierarchy(1) 0 ms # | V[16:02:09.336] >>> { # | "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:///clangd-test/main.cpp" # | } # | ] # | } # | # | V[16:02:09.336] <<< { # | "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:02:09.336] <-- typeHierarchy/supertypes(2) # | I[16:02:09.336] --> reply:typeHierarchy/supertypes(2) 0 ms # | V[16:02:09.336] >>> { # | "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:///clangd-test/main.cpp" # | } # | ] # | } # | # | V[16:02:09.336] <<< { # | "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:02:09.336] <-- typeHierarchy/subtypes(2) # | I[16:02:09.336] --> reply:typeHierarchy/subtypes(2) 0 ms # | V[16:02:09.336] >>> { # | "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:///clangd-test/main.cpp" # | } # | ] # | } # | # | V[16:02:09.336] <<< { # | "id": 3, # | "jsonrpc": "2.0", # | "method": "shutdown" # | } # | # | I[16:02:09.336] <-- shutdown(3) # | I[16:02:09.336] --> reply:shutdown(3) 0 ms # | V[16:02:09.336] >>> { # | "id": 3, # | "jsonrpc": "2.0", # | "result": null # | } # | # | V[16:02:09.336] <<< { # | "jsonrpc": "2.0", # | "method": "exit" # | } # | # | I[16:02:09.336] <-- exit # | I[16:02:09.336] LSP finished, exiting with status 0 # `----------------------------- # executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -strict-whitespace /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/test/type-hierarchy.test # .---command stderr------------ # | /home/gha/actions-runner/_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: /home/gha/actions-runner/_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/CallHierarchy/IncomingMultiFileObjC</summary> ``` Script: -- /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/clangd/unittests/./ClangdTests --gtest_filter=CallHierarchy.IncomingMultiFileObjC -- /home/gha/actions-runner/_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: {} /home/gha/actions-runner/_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: {} /home/gha/actions-runner/_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/CallHierarchy/MultiFileCpp</summary> ``` Script: -- /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/clangd/unittests/./ClangdTests --gtest_filter=CallHierarchy.MultiFileCpp -- /home/gha/actions-runner/_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: {} /home/gha/actions-runner/_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: {} /home/gha/actions-runner/_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 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
