xref: /llvm-project/clang/test/ClangScanDeps/missing-vfs.m (revision b21a2f9365b6c5fd464a97be5dfe7085742870ef)
1// Check that a missing VFS errors before trying to scan anything.
2
3// RUN: rm -rf %t && split-file %s %t
4// RUN: sed -e "s|DIR|%/t|g" %t/build/cdb.json.in > %t/build/cdb.json
5// RUN: not clang-scan-deps -compilation-database %t/build/cdb.json \
6// RUN:   -format experimental-full 2>&1 | FileCheck %s
7
8// CHECK: virtual filesystem overlay file
9// CHECK: not found
10
11//--- build/cdb.json.in
12[{
13  "directory": "DIR",
14  "command": "clang -c DIR/tu.m -ivfsoverlay DIR/vfs.yaml",
15  "file": "DIR/tu.m"
16}]
17
18//--- tu.m
19