#include <Diagnostic.h>

Classes | |
| struct | DiagInfo |
Public Member Functions | |
| Diagnostic () | |
| Diagnostic (llvm::raw_ostream &stream) | |
| DiagnosticStream & | report (const SourceLocation &loc, diag::Kind kind) |
| const char * | getFormat (diag::Kind kind) |
| Returns the format control string for the given diagnostic kind. | |
| diag::Type | getType (diag::Kind kind) |
| Returns the type associated with the given diagnostic kind. | |
| bool | reportsGenerated () |
| Returns true if report() has been called. | |
| unsigned | numReports () const |
| Returns the number of reports handled by this Diagnostic so far. | |
| unsigned | numErrors () const |
| Returns the number of error diagnostics posted. | |
| unsigned | numWarnings () const |
| Returns the number of warning diagnostics posted. | |
| unsigned | numNotes () const |
| Returns the number of note diagnostics posted. | |
Definition at line 94 of file Diagnostic.h.
| comma::Diagnostic::Diagnostic | ( | ) | [inline] |
Creates a diagnostic object with the reporting stream defaulting to std::cerr;
Definition at line 99 of file Diagnostic.h.
| comma::Diagnostic::Diagnostic | ( | llvm::raw_ostream & | stream | ) | [inline] |
Creates a diagnostic object with the given output stream serving as the default stream to which messages are delivered.
Definition at line 105 of file Diagnostic.h.
| const char * Diagnostic::getFormat | ( | diag::Kind | kind | ) |
Returns the format control string for the given diagnostic kind.
Definition at line 206 of file Diagnostic.cpp.
| diag::Type Diagnostic::getType | ( | diag::Kind | kind | ) |
Returns the type associated with the given diagnostic kind.
Definition at line 201 of file Diagnostic.cpp.
| unsigned comma::Diagnostic::numErrors | ( | ) | const [inline] |
Returns the number of error diagnostics posted.
Definition at line 126 of file Diagnostic.h.
| unsigned comma::Diagnostic::numNotes | ( | ) | const [inline] |
Returns the number of note diagnostics posted.
Definition at line 132 of file Diagnostic.h.
| unsigned comma::Diagnostic::numReports | ( | ) | const [inline] |
Returns the number of reports handled by this Diagnostic so far.
Definition at line 121 of file Diagnostic.h.
| unsigned comma::Diagnostic::numWarnings | ( | ) | const [inline] |
Returns the number of warning diagnostics posted.
Definition at line 129 of file Diagnostic.h.
| DiagnosticStream & Diagnostic::report | ( | const SourceLocation & | loc, | |
| diag::Kind | kind | |||
| ) |
Returns a DiagnosticStream which is ready to accept the arguments required by the diagnostic kind.
Definition at line 182 of file Diagnostic.cpp.
| bool comma::Diagnostic::reportsGenerated | ( | ) | [inline] |
Returns true if report() has been called.
Definition at line 118 of file Diagnostic.h.
1.6.1