mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Serialization] Add warning when .swiftsourceinfo is malformed
Output a warning rather than ignoring a malformed .swiftsourceinfo completely. Resolves rdar://77350048
This commit is contained in:
@@ -518,6 +518,13 @@ public:
|
||||
/// Returns \c true if this module file contains a section with incremental
|
||||
/// information.
|
||||
bool hasIncrementalInfo() const { return HasIncrementalInfo; }
|
||||
|
||||
/// Returns \c true if a corresponding .swiftsourceinfo has been found.
|
||||
bool hasSourceInfoFile() const { return !!ModuleSourceInfoInputBuffer; }
|
||||
|
||||
/// Returns \c true if a corresponding .swiftsourceinfo has been found *and
|
||||
/// read*.
|
||||
bool hasSourceInfo() const;
|
||||
};
|
||||
|
||||
template <typename T, typename RawData>
|
||||
|
||||
Reference in New Issue
Block a user