clang-tools-extra/clangd/test/indexer.test
raw| 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 |