llvm-capstone/clang-tools-extra/clangd/test/check-fail.test
Kadir Cetinkaya c3682a22c2
[clangd] Enable relative configs in check mode
See https://github.com/clangd/clangd/issues/649#issuecomment-885903316.
Also disables config support in lit tests to make sure tests are not affected by
clangd config files lying around.

Differential Revision: https://reviews.llvm.org/D107130
2021-07-30 14:23:48 +02:00

16 lines
504 B
Plaintext

// RUN: cp %s %t.cpp
// RUN: not clangd -enable-config=0 -check=%t.cpp 2>&1 | FileCheck -strict-whitespace %s
// CHECK: Testing on source file {{.*}}check-fail.test
// CHECK: internal (cc1) args are: -cc1
// CHECK: Building preamble...
// CHECK: [pp_file_not_found] Line {{.*}}: 'missing.h' file not found
// CHECK: Building AST...
// CHECK: Testing features at each token
// CHECK: tweak: ExpandAutoType ==> FAIL
// CHECK: All checks completed, 2 errors
#include "missing.h"
void fun();
auto x = fun;