-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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.
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// 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 |