[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang-tools-extra / clangd / test / remote-index / result-limiting.test
blobd0f6f6f0a5287a9c4ff593cc042a4cf8969da68d
1 # REQUIRES: clangd-remote-index
2 # RUN: rm -rf %t
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"}}
7 ---
8 # Ensure there's a single result.
9 {"jsonrpc":"2.0","id":1,"method":"workspace/symbol","params":{"query":"c"}}
10 # CHECK: {
11 # CHECK:   "id": 1,
12 # CHECK:   "jsonrpc": "2.0",
13 # CHECK:   "result": [
14 # CHECK:     {
15 # CHECK:       "containerName": "{{.*}}",
16 # CHECK:       "kind": {{.*}},
17 # CHECK:       "location": {
18 # CHECK:         "range": {
19 # CHECK:           "end": {
20 # CHECK:             "character": {{.*}},
21 # CHECK:             "line": {{.*}}
22 # CHECK:           },
23 # CHECK:           "start": {
24 # CHECK:             "character": {{.*}},
25 # CHECK:             "line": {{.*}}
26 # CHECK:           }
27 # CHECK:         },
28 # CHECK:         "uri": "{{.*}}"
29 # CHECK:       },
30 # CHECK:       "name": "{{.*}}",
31 # CHECK:       "score": {{.*}}
32 # CHECK:     }
33 # CHECK:   ]
34 # CHECK: }
35 ---
36 {"jsonrpc":"2.0","id":4,"method":"shutdown"}
37 ---
38 {"jsonrpc":"2.0","method":"exit"}