mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Serialization|NFC] Intro diagnoseAndConsumeError
Intro the service `diagnoseAndConsumeError` as the ultimate site to drop deserialization issues we can recover from. It will be used to raise diagnostics on the issues before dropping them silently.
This commit is contained in:
@@ -418,6 +418,10 @@ public:
|
||||
/// error is returned.
|
||||
llvm::Error consumeExpectedError(llvm::Error &&error);
|
||||
|
||||
/// Report project errors as remarks if desired, otherwise drop the error
|
||||
/// silently.
|
||||
void diagnoseAndConsumeError(llvm::Error error) const;
|
||||
|
||||
/// Report an unexpected format error that could happen only from a
|
||||
/// memory-level inconsistency. Please prefer passing an error to
|
||||
/// `fatal(llvm::Error error)` when possible.
|
||||
|
||||
Reference in New Issue
Block a user