forked from OSchip/llvm-project
24 lines
820 B
Plaintext
24 lines
820 B
Plaintext
# RUN: env CLANGD_TRACE=%t clangd -lit-test < %s && FileCheck %s < %t
|
|
{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabilities":{},"trace":"off"}}
|
|
---
|
|
{"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"test:///foo.c","languageId":"c","version":1,"text":"void main() {}"}}}
|
|
# These assertions are a bit loose, to avoid brittleness.
|
|
# CHECK: {"displayTimeUnit":"ns","traceEvents":[
|
|
# CHECK: {
|
|
# CHECK: "args": {
|
|
# CHECK: "File": "{{.*(/|\\)}}foo.c"
|
|
# CHECK: },
|
|
# CHECK: "name": "Preamble",
|
|
# CHECK: "ph": "X",
|
|
# CHECK: }
|
|
# CHECK: {
|
|
# CHECK: "args": {
|
|
# CHECK: "File": "{{.*(/|\\)}}foo.c"
|
|
# CHECK: },
|
|
# CHECK: "name": "Build",
|
|
# CHECK: "ph": "X",
|
|
# CHECK: }
|
|
# CHECK: },
|
|
---
|
|
{"jsonrpc":"2.0","id":5,"method":"shutdown"}
|