Welcome to the NetCologne GmbH open source mirroring service!

This machine mirrors various open-source projects. 20 Gbit/s uplink.

If there are any issues or you want another project mirrored, please contact mirror-service -=AT=- netcologne DOT de !

Comma: comma::Diagnostic Class Reference

comma::Diagnostic Class Reference

#include <Diagnostic.h>

Collaboration diagram for comma::Diagnostic:
Collaboration graph
[legend]

List of all members.

Classes

struct  DiagInfo

Public Member Functions

 Diagnostic ()
 Diagnostic (llvm::raw_ostream &stream)
DiagnosticStreamreport (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.

Detailed Description

Definition at line 94 of file Diagnostic.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


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

Generated on 1 Feb 2010 for Comma by  doxygen 1.6.1