xref: /llvm-project/clang-tools-extra/clangd/test/indexer.test (revision 41e24222861fb5394ab4c7e892a7d7f2914b533e)
1# RUN: rm -rf %t.cpp
2# RUN: touch %t.cpp
3#
4# Make sure compile flags are adjusted for clangd. `--save-temps` creates a
5# `.ii` file and `-verify` triggers extra diagnostics generation. Clangd should
6# strip those.
7# RUN: clangd-indexer %t.cpp -- -Xclang -verify --save-temps -- 2>&1 | FileCheck %s
8# CHECK-NOT: error: no expected directives found: consider use of 'expected-no-diagnostics'
9# RUN: not ls %t.ii
10