xref: /llvm-project/clang-tools-extra/clangd/test/dependency-output.test (revision c0afb6de4fc837d634d99b76ae73636a1f3ca73d)
1# UNSUPPORTED: system-windows
2# RUN: clangd -lit-test < %s | FileCheck -strict-whitespace %s
3{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabilities":{},"trace":"off"}}
4---
5{"jsonrpc":"2.0","method":"workspace/didChangeConfiguration","params":{"settings":{"compilationDatabaseChanges":{"/clangd-test/foo.c":
6{"workingDirectory":"/clangd-test", "compilationCommand": ["clang", "-c", "-Xclang", "--show-includes", "-Xclang", "-sys-header-deps", "foo.c"]}}}}}
7---
8{"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"test:///foo.c","languageId":"cpp","version":1,"text":"int a;\n#include <stddef.h>"}}}
9#CHECK-NOT: Note: including file
10---
11{"jsonrpc":"2.0","id":3,"method":"shutdown"}
12---
13{"jsonrpc":"2.0","method":"exit"}
14