[clang-tools-extra] Fix a link in ReleaseNotes.rst
[llvm-project.git] / clang-tools-extra / clangd / test / trace.test
blobcb6a226b496a4b4eb1475fcf45f5a78c8675f891
1 # RUN: env CLANGD_TRACE=%t clangd -lit-test < %s && FileCheck %s < %t
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:///foo.c","languageId":"c","version":1,"text":"void main() {}"}}}
5 # These assertions are a bit loose, to avoid brittleness.
6 # CHECK: {
7 # CHECK:   "displayTimeUnit": "ns",
8 # CHECK:   "traceEvents": [
9 # CHECK:     {
10 # CHECK:       "ph": "X",
11 # CHECK:       "name": "BuildPreamble",
12 # CHECK:       "args": {
13 # CHECK:         "File": "{{.*(/|\\)}}foo.c"
14 # CHECK:       },
15 # CHECK:     }
16 # CHECK:     {
17 # CHECK:       "ph": "X",
18 # CHECK:       "name": "BuildAST",
19 # CHECK:       "args": {
20 # CHECK:         "File": "{{.*(/|\\)}}foo.c"
21 # CHECK:       },
22 # CHECK:     }
23 # CHECK:   ]
24 # CHECK: }
25 ---
26 {"jsonrpc":"2.0","id":5,"method":"shutdown"}
27 ---
28 {"jsonrpc":"2.0","method":"exit"}