forked from OSchip/llvm-project
20 lines
768 B
Plaintext
20 lines
768 B
Plaintext
# RUN: not --crash clangd -lit-test < %s 2> %t.err
|
|
# RUN: FileCheck %s < %t.err --check-prefixes=CHECK,CHECK-SYNC
|
|
# RUN: not --crash clangd -lit-test -sync=0 < %s 2> %t.async.err
|
|
# RUN: FileCheck %s < %t.async.err
|
|
{"jsonrpc":"2.0","id":0,"method":"initialize","params":{}}
|
|
---
|
|
{"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{
|
|
"uri":"test:///foo.cc",
|
|
"languageId":"cpp",
|
|
"text":"#pragma clang __debug llvm_fatal_error"
|
|
}}}
|
|
---
|
|
{"jsonrpc":"2.0","id":1,"method":"sync","params":{}}
|
|
# CHECK: Signalled while building preamble
|
|
# CHECK-NEXT: Filename: foo.cc
|
|
# CHECK-SYNC: Signalled during AST worker action: Update
|
|
# CHECK-SYNC: Filename: foo.cc
|
|
# CHECK-SYNC: Signalled while processing message:
|
|
# CHECK-SYNC: "languageId":"cpp"
|