clang API Documentation
RAII class that determines when any errors have occurred between the time the instance was created and the time it was queried. More...
#include <Diagnostic.h>
Public Member Functions | |
| DiagnosticErrorTrap (DiagnosticsEngine &Diag) | |
| bool | hasErrorOccurred () const |
| Determine whether any errors have occurred since this object instance was created. | |
| bool | hasUnrecoverableErrorOccurred () const |
| Determine whether any unrecoverable errors have occurred since this object instance was created. | |
| void | reset () |
RAII class that determines when any errors have occurred between the time the instance was created and the time it was queried.
Definition at line 728 of file Diagnostic.h.
| clang::DiagnosticErrorTrap::DiagnosticErrorTrap | ( | DiagnosticsEngine & | Diag | ) | [inline, explicit] |
Definition at line 734 of file Diagnostic.h.
References reset().
| bool clang::DiagnosticErrorTrap::hasErrorOccurred | ( | ) | const [inline] |
Determine whether any errors have occurred since this object instance was created.
Definition at line 739 of file Diagnostic.h.
Referenced by clang::Sema::DefineImplicitCopyAssignment(), clang::Sema::DefineImplicitCopyConstructor(), clang::Sema::DefineImplicitDefaultConstructor(), clang::Sema::DefineImplicitDestructor(), clang::Sema::DefineImplicitMoveAssignment(), clang::Sema::DefineImplicitMoveConstructor(), and clang::Scope::hasErrorOccurred().
| bool clang::DiagnosticErrorTrap::hasUnrecoverableErrorOccurred | ( | ) | const [inline] |
Determine whether any unrecoverable errors have occurred since this object instance was created.
Definition at line 745 of file Diagnostic.h.
Referenced by clang::Sema::hasAnyUnrecoverableErrorsInThisFunction().
| void clang::DiagnosticErrorTrap::reset | ( | ) | [inline] |
Definition at line 750 of file Diagnostic.h.
Referenced by clang::sema::FunctionScopeInfo::Clear(), DiagnosticErrorTrap(), and clang::Scope::Init().