clang API Documentation

Public Member Functions
clang::DiagnosticErrorTrap Class Reference

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>

List of all members.

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 ()
 Set to initial state of "no errors occurred".

Detailed Description

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 820 of file Diagnostic.h.


Constructor & Destructor Documentation

Definition at line 826 of file Diagnostic.h.

References reset().


Member Function Documentation

Determine whether any unrecoverable errors have occurred since this object instance was created.

Definition at line 837 of file Diagnostic.h.

Referenced by clang::Sema::hasAnyUnrecoverableErrorsInThisFunction(), and clang::Scope::hasUnrecoverableErrorOccurred().

Set to initial state of "no errors occurred".

Definition at line 842 of file Diagnostic.h.

Referenced by clang::sema::FunctionScopeInfo::Clear(), DiagnosticErrorTrap(), and clang::Scope::Init().


The documentation for this class was generated from the following file: