2 # RUN: clangd-indexer %S/Inputs/Source.cpp > %t.idx
3 # RUN: %python %S/pipeline_helper.py --input-file-name=%s --project-root=%S --index-file=%t.idx | FileCheck %s
4 # REQUIRES: clangd-remote-index
6 # CHECK: "uptime_seconds": "{{.*}}",
7 # CHECK-NEXT: "index_age_seconds": "{{.*}}",
8 # CHECK-NEXT: "index_commit_hash": "{{.*}}",
9 # CHECK-NEXT: "index_link": "{{.*}}"
11 {"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabilities":{},"trace":"off"}}
13 # CHECK-NEXT: "jsonrpc": "2.0",
15 {"jsonrpc":"2.0","id":1,"method":"workspace/symbol","params":{"query":"Character"}}
17 # CHECK-NEXT: "jsonrpc": "2.0",
18 # CHECK-NEXT: "result": [
20 # CHECK-NEXT: "containerName": "clang::clangd::remote",
21 # CHECK-NEXT: "kind": 13,
22 # CHECK-NEXT: "location": {
23 # CHECK-NEXT: "range": {
24 # CHECK-NEXT: "end": {
25 # CHECK-NEXT: "character": {{.*}},
26 # CHECK-NEXT: "line": {{.*}}
28 # CHECK-NEXT: "start": {
29 # CHECK-NEXT: "character": {{.*}},
30 # CHECK-NEXT: "line": {{.*}}
33 # CHECK-NEXT: "uri": "file://{{.*}}/Header.h"
35 # CHECK-NEXT: "name": "Character",
36 # CHECK-NEXT: "score": {{.*}}
41 {"jsonrpc":"2.0","id":4,"method":"shutdown"}
43 {"jsonrpc":"2.0","method":"exit"}