mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Front-end: add an option to ignore .swiftsourceinfo file for testing purposes
We generate .swiftsourceinfo for stdlib in the build directory because ABI checker could issue diagnostics to the stdlib source. However, this may also change other diagnostic tests. Both Brent and Jordan have raised concern about this. After adding this flag, other diagnostic tests could ignore .swiftsourceinfo files even though when they are present so our tests will reflect what most users experience when sources for stdlib are unavailable.
This commit is contained in:
@@ -156,6 +156,9 @@ public:
|
||||
/// Indicates that the input(s) should be parsed as the Swift stdlib.
|
||||
bool ParseStdlib = false;
|
||||
|
||||
/// Ignore .swiftsourceinfo file when trying to get source locations from module imported decls.
|
||||
bool IgnoreSwiftSourceInfo = false;
|
||||
|
||||
/// When true, emitted module files will always contain options for the
|
||||
/// debugger to use. When unset, the options will only be present if the
|
||||
/// module appears to not be a public module.
|
||||
|
||||
Reference in New Issue
Block a user