[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang-tools-extra / clangd / test / references-container.test
blobc27ec886e731ca8e30be235c16dcd868232852ad
1 # RUN: clangd -lit-test < %s | FileCheck -strict-whitespace %s
2 {"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabilities":{"textDocument":{"references":{"container": true}}},"trace":"off"}}
3 ---
4 {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{
5   "uri":"test:///main.cpp",
6   "languageId":"cpp",
7   "version":1,
8   "text":"void foo();void bar() { foo(); }"
9 }}}
10 ---
11 {"jsonrpc":"2.0","id":1,"method":"textDocument/references","params":{
12   "textDocument":{"uri":"test:///main.cpp"},
13   "position":{"line":0,"character":6},
14   "context":{"includeDeclaration": false}
16 #      CHECK:  "id": 1
17 # CHECK-NEXT:  "jsonrpc": "2.0",
18 # CHECK-NEXT:  "result": [
19 # CHECK-NEXT:    {
20 # CHECK-NEXT:      "containerName": "bar",
21 # CHECK-NEXT:      "range": {
22 # CHECK-NEXT:        "end": {
23 # CHECK-NEXT:          "character": 27,
24 # CHECK-NEXT:          "line": 0
25 # CHECK-NEXT:        },
26 # CHECK-NEXT:        "start": {
27 # CHECK-NEXT:          "character": 24,
28 # CHECK-NEXT:          "line": 0
29 # CHECK-NEXT:        }
30 # CHECK-NEXT:      },
31 # CHECK-NEXT:      "uri": "{{.*}}/main.cpp"
32 # CHECK-NEXT:    }
33 # CHECK-NEXT:  ]
34 ---
35 {"jsonrpc":"2.0","id":3,"method":"shutdown"}
36 ---
37 {"jsonrpc":"2.0","method":"exit"}