clang API Documentation

Public Types | Public Member Functions
clang::StoredDiagnostic Class Reference

Represents a diagnostic in a form that can be retained until its corresponding source manager is destroyed. More...

#include <Diagnostic.h>

List of all members.

Public Types

typedef std::vector
< CharSourceRange >
::const_iterator 
range_iterator
typedef std::vector< FixItHint >
::const_iterator 
fixit_iterator

Public Member Functions

 StoredDiagnostic ()
 StoredDiagnostic (DiagnosticsEngine::Level Level, const Diagnostic &Info)
 StoredDiagnostic (DiagnosticsEngine::Level Level, unsigned ID, StringRef Message)
 StoredDiagnostic (DiagnosticsEngine::Level Level, unsigned ID, StringRef Message, FullSourceLoc Loc, ArrayRef< CharSourceRange > Ranges, ArrayRef< FixItHint > Fixits)
 ~StoredDiagnostic ()
LLVM_EXPLICIT operator bool () const
 Evaluates true when this object stores a diagnostic.
unsigned getID () const
DiagnosticsEngine::Level getLevel () const
const FullSourceLocgetLocation () const
StringRef getMessage () const
void setLocation (FullSourceLoc Loc)
range_iterator range_begin () const
range_iterator range_end () const
unsigned range_size () const
ArrayRef< CharSourceRangegetRanges () const
fixit_iterator fixit_begin () const
fixit_iterator fixit_end () const
unsigned fixit_size () const
ArrayRef< FixItHintgetFixIts () const

Detailed Description

Represents a diagnostic in a form that can be retained until its corresponding source manager is destroyed.

Definition at line 1242 of file Diagnostic.h.


Member Typedef Documentation

typedef std::vector<FixItHint>::const_iterator clang::StoredDiagnostic::fixit_iterator

Definition at line 1281 of file Diagnostic.h.

typedef std::vector<CharSourceRange>::const_iterator clang::StoredDiagnostic::range_iterator

Definition at line 1271 of file Diagnostic.h.


Constructor & Destructor Documentation

Definition at line 913 of file Diagnostic.cpp.

StoredDiagnostic::StoredDiagnostic ( DiagnosticsEngine::Level  Level,
unsigned  ID,
StringRef  Message 
)

Definition at line 915 of file Diagnostic.cpp.

StoredDiagnostic::StoredDiagnostic ( DiagnosticsEngine::Level  Level,
unsigned  ID,
StringRef  Message,
FullSourceLoc  Loc,
ArrayRef< CharSourceRange Ranges,
ArrayRef< FixItHint Fixits 
)

Definition at line 940 of file Diagnostic.cpp.

Definition at line 949 of file Diagnostic.cpp.


Member Function Documentation

Definition at line 1282 of file Diagnostic.h.

Referenced by makeStandaloneDiagnostic(), and clang::DiagnosticsEngine::Report().

Definition at line 1283 of file Diagnostic.h.

Referenced by makeStandaloneDiagnostic(), and clang::DiagnosticsEngine::Report().

Definition at line 1284 of file Diagnostic.h.

Referenced by clang::DiagnosticsEngine::Report().

ArrayRef<FixItHint> clang::StoredDiagnostic::getFixIts ( ) const [inline]

Definition at line 1286 of file Diagnostic.h.

Referenced by clang::DiagnosticRenderer::emitStoredDiagnostic().

StringRef clang::StoredDiagnostic::getMessage ( ) const [inline]

Definition at line 1276 of file Diagnostic.h.

Referenced by clang::DiagnosticRenderer::emitStoredDiagnostic().

LLVM_EXPLICIT clang::StoredDiagnostic::operator bool ( ) const [inline]

Evaluates true when this object stores a diagnostic.

Definition at line 1262 of file Diagnostic.h.

Definition at line 1274 of file Diagnostic.h.

Referenced by clang::DiagnosticsEngine::Report().

Definition at line 1269 of file Diagnostic.h.


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