[ELF] Reorder SectionBase/InputSectionBase members
[llvm-project.git] / clang-tools-extra / clangd / test / symbol-info.test
blobba788e1c398eb3f5064e02f35e284040f1ef0d1c
1 # RUN: clangd -lit-test < %s | FileCheck %s
2 {"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabilities":{},"trace":"off"}}
3 ---
4 {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"test:///simple.cpp","languageId":"cpp","version":1,"text":"void foo(); void foo() {} int main() { foo(); }\n"}}}
5 ---
6 {"jsonrpc":"2.0","id":1,"method":"textDocument/symbolInfo","params":{"textDocument":{"uri":"test:///simple.cpp"},"position":{"line":0,"character":40}}}
7 #      CHECK:    "containerName": null,
8 # CHECK-NEXT:    "declarationRange": {
9 # CHECK-NEXT:      "range": {
10 # CHECK-NEXT:        "end": {
11 # CHECK-NEXT:          "character": 8,
12 # CHECK-NEXT:          "line": 0
13 # CHECK-NEXT:        },
14 # CHECK-NEXT:        "start": {
15 # CHECK-NEXT:                   "character": 5,
16 # CHECK-NEXT:                   "line": 0
17 # CHECK-NEXT:            }
18 # CHECK-NEXT:      },
19 # CHECK-NEXT:      "uri": "file://{{.*}}/clangd-test/simple.cpp"
20 # CHECK-NEXT:    },
21 # CHECK-NEXT:    "definitionRange": {
22 # CHECK-NEXT:      "range": {
23 # CHECK-NEXT:        "end": {
24 # CHECK-NEXT:          "character": 20,
25 # CHECK-NEXT:          "line": 0
26 # CHECK-NEXT:        },
27 # CHECK-NEXT:        "start": {
28 # CHECK-NEXT:                   "character": 17,
29 # CHECK-NEXT:                   "line": 0
30 # CHECK-NEXT:            }
31 # CHECK-NEXT:      },
32 # CHECK-NEXT:      "uri": "file://{{.*}}/clangd-test/simple.cpp"
33 # CHECK-NEXT:    },
34 # CHECK-NEXT:    "id": "CA2EBE44A1D76D2A",
35 # CHECK-NEXT:    "name": "foo",
36 # CHECK-NEXT:    "usr": "c:@F@foo#"
37 ---
38 {"jsonrpc":"2.0","id":3,"method":"shutdown"}
39 ---
40 {"jsonrpc":"2.0","method":"exit"}