Mercurial > hg > CbC > CbC_llvm
comparison clang-tools-extra/clangd/test/symbol-info.test @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children | c4bab56944e8 |
comparison
equal
deleted
inserted
replaced
147:c2174574ed3a | 150:1d019706d866 |
---|---|
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(); int main() { foo(); }\n"}}} | |
5 --- | |
6 {"jsonrpc":"2.0","id":1,"method":"textDocument/symbolInfo","params":{"textDocument":{"uri":"test:///simple.cpp"},"position":{"line":0,"character":27}}} | |
7 # CHECK: "containerName": null, | |
8 # CHECK-NEXT: "id": "CA2EBE44A1D76D2A", | |
9 # CHECK-NEXT: "name": "foo", | |
10 # CHECK-NEXT: "usr": "c:@F@foo#" | |
11 --- | |
12 {"jsonrpc":"2.0","id":3,"method":"shutdown"} | |
13 --- | |
14 {"jsonrpc":"2.0","method":"exit"} |