Without this scanning will continue and later hit an assert that the number of `RedirectingFileSystem`s matches the number of -ivfsoverlay arguments.
19 lines
511 B
Objective-C
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
|