clang
3.7.0
|
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. More... | |
bool | hasUnrecoverableErrorOccurred () const |
Determine whether any unrecoverable errors have occurred since this object instance was created. More... | |
void | reset () |
Set to initial state of "no errors occurred". More... | |
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 822 of file Diagnostic.h.
|
inlineexplicit |
Definition at line 828 of file Diagnostic.h.
References reset().
|
inline |
Determine whether any errors have occurred since this object instance was created.
Definition at line 833 of file Diagnostic.h.
Referenced by clang::Sema::checkClassLevelDLLAttribute(), clang::Sema::DefineImplicitCopyAssignment(), clang::Sema::DefineImplicitCopyConstructor(), clang::Sema::DefineImplicitDefaultConstructor(), clang::Sema::DefineImplicitDestructor(), clang::Sema::DefineImplicitMoveAssignment(), clang::Sema::DefineImplicitMoveConstructor(), clang::Sema::DefineInheritingConstructor(), clang::driver::Driver::generateCompilationDiagnostics(), and clang::Scope::hasErrorOccurred().
|
inline |
Determine whether any unrecoverable errors have occurred since this object instance was created.
Definition at line 839 of file Diagnostic.h.
Referenced by clang::Sema::hasAnyUnrecoverableErrorsInThisFunction(), and clang::Scope::hasUnrecoverableErrorOccurred().
|
inline |
Set to initial state of "no errors occurred".
Definition at line 844 of file Diagnostic.h.
Referenced by clang::sema::FunctionScopeInfo::Clear(), DiagnosticErrorTrap(), and clang::Scope::Init().