1 # REQUIRES: clangd-remote-index
3 # RUN: clangd-indexer %S/Inputs/Source.cpp > %t.idx
4 # RUN: %python %S/pipeline_helper.py --input-file-name=%s --server-arg=--limit-results=1 --project-root=%S --index-file=%t.idx | FileCheck %s
6 {"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabilities":{},"trace":"off"}}
8 # Ensure there's a single result.
9 {"jsonrpc":"2.0","id":1,"method":"workspace/symbol","params":{"query":"c"}}
12 # CHECK: "jsonrpc": "2.0",
15 # CHECK: "containerName": "{{.*}}",
16 # CHECK: "kind": {{.*}},
17 # CHECK: "location": {
20 # CHECK: "character": {{.*}},
21 # CHECK: "line": {{.*}}
24 # CHECK: "character": {{.*}},
25 # CHECK: "line": {{.*}}
28 # CHECK: "uri": "{{.*}}"
30 # CHECK: "name": "{{.*}}",
31 # CHECK: "score": {{.*}}
36 {"jsonrpc":"2.0","id":4,"method":"shutdown"}
38 {"jsonrpc":"2.0","method":"exit"}