[clang-tools-extra] [clangd] Add new highlighting modifier `CommandLineDefined`. (PR #175495)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 11 23:47:52 PST 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 3017 tests passed
* 29 tests skipped
* 2 tests failed
## Failed Tests
(click on a test name to see its output)
### Clangd
<details>
<summary>Clangd.Clangd/initialize-params.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\initialize-params.test | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -strict-whitespace C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\initialize-params.test
# executed command: clangd -lit-test
# .---command stderr------------
# | I[07:46:50.122] clangd version 22.0.0git (https://github.com/llvm/llvm-project cac7830d2be948a448c59538730b91c7106cb67a)
# | I[07:46:50.125] Features: windows+debug
# | I[07:46:50.125] PID: 18552
# | I[07:46:50.125] Working directory: C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\clangd\test
# | I[07:46:50.125] argv[0]: clangd.exe
# | I[07:46:50.125] argv[1]: -lit-test
# | I[07:46:50.125] Starting LSP over stdin/stdout
# | V[07:46:50.125] <<< {
# | "id": 0,
# | "jsonrpc": "2.0",
# | "method": "initialize",
# | "params": {
# | "capabilities": {},
# | "processId": 123,
# | "rootUri": "test:///workspace",
# | "trace": "off"
# | }
# | }
# |
# | I[07:46:50.125] <-- initialize(0)
# | I[07:46:51.102] --> reply:initialize(0) 976 ms
# | V[07:46:51.102] >>> {
# | "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",
# | "commandLine",
# | "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 22.0.0git (https://github.com/llvm/llvm-project cac7830d2be948a448c59538730b91c7106cb67a) windows+debug x86_64-pc-windows-msvc"
# | }
# | }
# | }
# |
# | V[07:46:51.103] <<< {
# | "id": 3,
# | "jsonrpc": "2.0",
# | "method": "shutdown"
# | }
# |
# | I[07:46:51.103] <-- shutdown(3)
# | I[07:46:51.103] --> reply:shutdown(3) 0 ms
# | V[07:46:51.103] >>> {
# | "id": 3,
# | "jsonrpc": "2.0",
# | "result": null
# | }
# |
# | V[07:46:51.103] <<< {
# | "jsonrpc": "2.0",
# | "method": "exit"
# | }
# |
# | I[07:46:51.103] <-- exit
# | I[07:46:51.103] 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\initialize-params.test'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\initialize-params.test:78:26: error: CHECK-NEXT: expected string not found in input
# | # CHECK-NEXT: "commandLineDefined",
# | ^
# | <stdin>:77:27: note: scanning from here
# | "userDefined",
# | ^
# | <stdin>:78:13: note: possible intended match here
# | "commandLine",
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\initialize-params.test
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 72: "dependentName",
# | 73: "defaultLibrary",
# | 74: "usedAsMutableReference",
# | 75: "usedAsMutablePointer",
# | 76: "constructorOrDestructor",
# | 77: "userDefined",
# | next:78'0 X error: no match found
# | 78: "commandLine",
# | next:78'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:78'1 ? possible intended match
# | 79: "functionScope",
# | next:78'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 80: "classScope",
# | next:78'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 81: "fileScope",
# | next:78'0 ~~~~~~~~~~~~~~~~~~~~~~~~~
# | 82: "globalScope"
# | next:78'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 83: ],
# | next:78'0 ~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clangd.Clangd/semantic-tokens.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\semantic-tokens.test | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -strict-whitespace C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\semantic-tokens.test -implicit-check-not=semanticHighlight
# executed command: clangd -lit-test
# .---command stderr------------
# | I[07:46:50.926] clangd version 22.0.0git (https://github.com/llvm/llvm-project cac7830d2be948a448c59538730b91c7106cb67a)
# | I[07:46:50.936] Features: windows+debug
# | I[07:46:50.936] PID: 15284
# | I[07:46:50.936] Working directory: C:\_work\llvm-project\llvm-project\build\tools\clang\tools\extra\clangd\test
# | I[07:46:50.936] argv[0]: clangd.exe
# | I[07:46:50.936] argv[1]: -lit-test
# | I[07:46:50.936] Starting LSP over stdin/stdout
# | V[07:46:50.936] <<< {
# | "id": 0,
# | "jsonrpc": "2.0",
# | "method": "initialize",
# | "params": {
# | "capabilities": {
# | "textDocument": {
# | "semanticHighlightingCapabilities": {
# | "semanticHighlighting": true
# | },
# | "semanticTokens": {
# | "dynamicRegistration": true
# | }
# | }
# | }
# | }
# | }
# |
# | I[07:46:50.937] <-- initialize(0)
# | I[07:46:51.899] --> reply:initialize(0) 962 ms
# | V[07:46:51.899] >>> {
# | "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",
# | "commandLine",
# | "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 22.0.0git (https://github.com/llvm/llvm-project cac7830d2be948a448c59538730b91c7106cb67a) windows+debug x86_64-pc-windows-msvc"
# | }
# | }
# | }
# |
# | V[07:46:51.899] <<< {
# | "jsonrpc": "2.0",
# | "method": "textDocument/didOpen",
# | "params": {
# | "textDocument": {
# | "languageId": "cpp",
# | "text": "int x = 2;",
# | "uri": "test:///foo.cpp"
# | }
# | }
# | }
# |
# | I[07:46:51.899] <-- textDocument/didOpen
# | I[07:46:51.902] Failed to find compilation database for C:\clangd-test\foo.cpp
# | I[07:46:51.902] ASTWorker building file C:\clangd-test\foo.cpp version 0 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\\22" -- "C:\\clangd-test\\foo.cpp"
# | E[07:46:51.903] VFS: failed to set CWD to C:\clangd-test: no such file or directory
# | V[07:46:51.907] Driver produced command: cc1 -cc1 -triple x86_64-pc-windows-msvc19.29.30159 -fsyntax-only -disable-free -clear-ast-before-backend -main-file-name foo.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\\22" -internal-isystem "C:\\_work\\llvm-project\\llvm-project\\build\\lib\\clang\\22\\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\\foo.cpp"
# | V[07:46:51.907] Building first preamble for C:\clangd-test\foo.cpp version 0
# | E[07:46:51.909] VFS: failed to set CWD to C:\clangd-test: no such file or directory
# | I[07:46:51.937] Built preamble of size 266408 for file C:\clangd-test\foo.cpp version 0 in 0.03 seconds
# | V[07:46:51.937] indexed preamble AST for C:\clangd-test\foo.cpp version 0:
# | symbol slab: 0 symbols, 128 bytes
# | ref slab: 0 symbols, 0 refs, 136 bytes
# | relations slab: 0 relations, 24 bytes
# | E[07:46:51.938] VFS: failed to set CWD to C:\clangd-test: no such file or directory
# | V[07:46:51.970] indexed file AST for C:\clangd-test\foo.cpp version 0:
# | symbol slab: 1 symbols, 4456 bytes
# | ref slab: 1 symbols, 1 refs, 4256 bytes
# | relations slab: 0 relations, 24 bytes
# | V[07:46:51.970] Build dynamic index for main-file symbols with estimated memory usage of 11536 bytes
# | I[07:46:51.970] --> textDocument/publishDiagnostics
# | V[07:46:51.970] >>> {
# | "jsonrpc": "2.0",
# | "method": "textDocument/publishDiagnostics",
# | "params": {
# | "diagnostics": [],
# | "uri": "file:///C:/clangd-test/foo.cpp",
# | "version": 0
# | }
# | }
# |
# | V[07:46:51.971] <<< {
# | "id": 1,
# | "jsonrpc": "2.0",
# | "method": "textDocument/semanticTokens/full",
# | "params": {
# | "textDocument": {
# | "uri": "test:///foo.cpp"
# | }
# | }
# | }
# |
# | I[07:46:51.971] <-- textDocument/semanticTokens/full(1)
# | V[07:46:51.971] ASTWorker running SemanticHighlights on version 0 of C:\clangd-test\foo.cpp
# | I[07:46:51.971] --> reply:textDocument/semanticTokens/full(1) 0 ms
# | V[07:46:51.971] >>> {
# | "id": 1,
# | "jsonrpc": "2.0",
# | "result": {
# | "data": [
# | 0,
# | 4,
# | 1,
# | 0,
# | 262147
# | ],
# | "resultId": "1"
# | }
# | }
# |
# | V[07:46:51.971] <<< {
# | "jsonrpc": "2.0",
# | "method": "textDocument/didChange",
# | "params": {
# | "contentChanges": [
# | {
# | "text": "int x = 2;\nint y = 3;"
# | }
# | ],
# | "textDocument": {
# | "uri": "test:///foo.cpp",
# | "version": 2
# | }
# | }
# | }
# |
# | I[07:46:51.971] <-- textDocument/didChange
# | I[07:46:51.971] Failed to find compilation database for C:\clangd-test\foo.cpp
# | I[07:46:51.971] ASTWorker building file C:\clangd-test\foo.cpp version 2 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\\22" -- "C:\\clangd-test\\foo.cpp"
# | E[07:46:51.972] VFS: failed to set CWD to C:\clangd-test: no such file or directory
# | V[07:46:51.975] Driver produced command: cc1 -cc1 -triple x86_64-pc-windows-msvc19.29.30159 -fsyntax-only -disable-free -clear-ast-before-backend -main-file-name foo.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\\22" -internal-isystem "C:\\_work\\llvm-project\\llvm-project\\build\\lib\\clang\\22\\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\\foo.cpp"
# | E[07:46:51.976] VFS: failed to set CWD to C:\clangd-test: no such file or directory
# | V[07:46:51.976] Reusing preamble version 0 for version 2 of C:\clangd-test\foo.cpp
# | E[07:46:51.977] VFS: failed to set CWD to C:\clangd-test: no such file or directory
# | V[07:46:51.998] indexed file AST for C:\clangd-test\foo.cpp version 2:
# | symbol slab: 2 symbols, 4688 bytes
# | ref slab: 2 symbols, 2 refs, 4280 bytes
# | relations slab: 0 relations, 24 bytes
# | V[07:46:51.998] Build dynamic index for main-file symbols with estimated memory usage of 12056 bytes
# | I[07:46:51.998] --> textDocument/publishDiagnostics
# | V[07:46:51.998] >>> {
# | "jsonrpc": "2.0",
# | "method": "textDocument/publishDiagnostics",
# | "params": {
# | "diagnostics": [],
# | "uri": "file:///C:/clangd-test/foo.cpp",
# | "version": 2
# | }
# | }
# |
# | V[07:46:51.998] <<< {
# | "id": 2,
# | "jsonrpc": "2.0",
# | "method": "textDocument/semanticTokens/full/delta",
# | "params": {
# | "previousResultId": "1",
# | "textDocument": {
# | "uri": "test:///foo.cpp"
# | }
# | }
# | }
# |
# | I[07:46:51.998] <-- textDocument/semanticTokens/full/delta(2)
# | V[07:46:51.998] ASTWorker running SemanticHighlights on version 2 of C:\clangd-test\foo.cpp
# | I[07:46:51.998] --> reply:textDocument/semanticTokens/full/delta(2) 0 ms
# | V[07:46:51.998] >>> {
# | "id": 2,
# | "jsonrpc": "2.0",
# | "result": {
# | "edits": [
# | {
# | "data": [
# | 1,
# | 4,
# | 1,
# | 0,
# | 262147
# | ],
# | "deleteCount": 0,
# | "start": 5
# | }
# | ],
# | "resultId": "2"
# | }
# | }
# |
# | V[07:46:51.998] <<< {
# | "id": 2,
# | "jsonrpc": "2.0",
# | "method": "textDocument/semanticTokens/full/delta",
# | "params": {
# | "previousResultId": "bogus",
# | "textDocument": {
# | "uri": "test:///foo.cpp"
# | }
# | }
# | }
# |
# | I[07:46:51.998] <-- textDocument/semanticTokens/full/delta(2)
# | V[07:46:51.998] ASTWorker running SemanticHighlights on version 2 of C:\clangd-test\foo.cpp
# | V[07:46:51.998] semanticTokens/full/delta: wanted edits vs bogus but last result had ID 2. Returning full token list.
# | I[07:46:51.998] --> reply:textDocument/semanticTokens/full/delta(2) 0 ms
# | V[07:46:51.998] >>> {
# | "id": 2,
# | "jsonrpc": "2.0",
# | "result": {
# | "data": [
# | 0,
# | 4,
# | 1,
# | 0,
# | 262147,
# | 1,
# | 4,
# | 1,
# | 0,
# | 262147
# | ],
# | "resultId": "3"
# | }
# | }
# |
# | V[07:46:51.998] <<< {
# | "id": 3,
# | "jsonrpc": "2.0",
# | "method": "shutdown"
# | }
# |
# | I[07:46:51.998] <-- shutdown(3)
# | I[07:46:51.998] --> reply:shutdown(3) 0 ms
# | V[07:46:51.998] >>> {
# | "id": 3,
# | "jsonrpc": "2.0",
# | "result": null
# | }
# |
# | V[07:46:51.998] <<< {
# | "jsonrpc": "2.0",
# | "method": "exit"
# | }
# |
# | I[07:46:51.998] <-- exit
# | I[07:46:51.998] 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\semantic-tokens.test' -implicit-check-not=semanticHighlight
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\semantic-tokens.test:26:20: error: CHECK-NEXT: expected string not found in input
# | # CHECK-NEXT: 131075
# | ^
# | <stdin>:160:9: note: scanning from here
# | 0,
# | ^
# | <stdin>:161:8: note: possible intended match here
# | 262147
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang-tools-extra\clangd\test\semantic-tokens.test
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 155: "result": {
# | 156: "data": [
# | 157: 0,
# | 158: 4,
# | 159: 1,
# | 160: 0,
# | next:26'0 X error: no match found
# | 161: 262147
# | next:26'0 ~~~~~~~~~~~~~
# | next:26'1 ? possible intended match
# | 162: ],
# | next:26'0 ~~~~~~~
# | 163: "resultId": "1"
# | next:26'0 ~~~~~~~~~~~~~~~~~~~~
# | 164: }
# | next:26'0 ~~~~
# | 165: }Content-Length: 173
# | next:26'0 ~~~~~~~~~~~~~~~~~~~~~
# | 166:
# | next:26'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/175495
More information about the cfe-commits
mailing list