mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-15 12:09:51 +00:00
b804eef090
Summary: Motivation: - this layout is a pain to work with - without a common root, it's painful to express things like "disable clangd" (D61122) - CMake/lit configs are a maintenance hazard, and the more the one-off hacks for various tools are entangled, the more we see apathy and non-ownership. This attempts to use the bare-minimum configuration needed (while still supporting the difficult cases: windows, standalone clang build, dynamic libs). In particular the lit.cfg.py and lit.site.cfg.py.in are merged into lit.cfg.in. The logic in these files is now minimal. (Much of clang-tools-extra's lit configs can probably be cleaned up by reusing lit.llvm.llvm_config.use_clang(), and every llvm project does its own version of LDPATH mangling. I haven't attempted to fix any of those). Docs are still in clang-tools-extra/docs, I don't have any plans to touch those. Reviewers: gribozavr Subscribers: mgorny, javed.absar, MaskRay, jkorous, arphaman, kadircet, jfb, cfe-commits, ilya-biryukov, thakis Tags: #clang Differential Revision: https://reviews.llvm.org/D61187 llvm-svn: 359424
29 lines
960 B
Plaintext
29 lines
960 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: {
|
|
# 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"}
|