Michael Spencer b21a2f9365 [clang][scan-deps] Stop scanning if any scanning setup emits an error.
Without this scanning will continue and later hit an assert that the
number of `RedirectingFileSystem`s matches the number of -ivfsoverlay
arguments.
2024-01-30 17:03:13 -08:00

19 lines
511 B
Objective-C

// Check that a missing VFS errors before trying to scan anything.
// RUN: rm -rf %t && split-file %s %t
// RUN: sed -e "s|DIR|%/t|g" %t/build/cdb.json.in > %t/build/cdb.json
// RUN: not clang-scan-deps -compilation-database %t/build/cdb.json \
// RUN: -format experimental-full 2>&1 | FileCheck %s
// CHECK: virtual filesystem overlay file
// CHECK: not found
//--- build/cdb.json.in
[{
"directory": "DIR",
"command": "clang -c DIR/tu.m -ivfsoverlay DIR/vfs.yaml",
"file": "DIR/tu.m"
}]
//--- tu.m