forked from OSchip/llvm-project
parent
cba5cf6b6b
commit
e14426aaca
|
@ -382,6 +382,11 @@ public:
|
|||
/// flag is set at the time when this raw_ostream's destructor is called,
|
||||
/// report_fatal_error is called to report the error. Use clear_error()
|
||||
/// after handling the error to avoid this behavior.
|
||||
///
|
||||
/// "Errors should never pass silently.
|
||||
/// Unless explicitly silenced."
|
||||
/// - from The Zen of Python, by Tim Peters
|
||||
///
|
||||
void clear_error() {
|
||||
Error = false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue