Mercurial > hg > CbC > CbC_llvm
view clang-tools-extra/clangd/test/trace.test @ 180:680fa57a2f20
fix compile errors.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 30 May 2020 17:44:06 +0900 |
parents | 1d019706d866 |
children |
line wrap: on
line source
# 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: { # CHECK: "displayTimeUnit": "ns", # CHECK: "traceEvents": [ # CHECK: { # CHECK: "ph": "X", # CHECK: "name": "BuildPreamble", # CHECK: "args": { # CHECK: "File": "{{.*(/|\\)}}foo.c" # CHECK: }, # CHECK: } # CHECK: { # CHECK: "ph": "X", # CHECK: "name": "BuildAST", # CHECK: "args": { # CHECK: "File": "{{.*(/|\\)}}foo.c" # CHECK: }, # CHECK: } # CHECK: ] # CHECK: } --- {"jsonrpc":"2.0","id":5,"method":"shutdown"} --- {"jsonrpc":"2.0","method":"exit"}