clang  3.7.0
Public Types | Public Member Functions | List of all members
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>

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 ()
 
 operator bool () const
 Evaluates true when this object stores a diagnostic. More...
 
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 1258 of file Diagnostic.h.

Member Typedef Documentation

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

Definition at line 1297 of file Diagnostic.h.

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

Definition at line 1287 of file Diagnostic.h.

Constructor & Destructor Documentation

StoredDiagnostic::StoredDiagnostic ( )

Definition at line 948 of file Diagnostic.cpp.

StoredDiagnostic::StoredDiagnostic ( DiagnosticsEngine::Level  Level,
const Diagnostic Info 
)
StoredDiagnostic::StoredDiagnostic ( DiagnosticsEngine::Level  Level,
unsigned  ID,
StringRef  Message 
)

Definition at line 950 of file Diagnostic.cpp.

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

Definition at line 969 of file Diagnostic.cpp.

StoredDiagnostic::~StoredDiagnostic ( )

Definition at line 978 of file Diagnostic.cpp.

Member Function Documentation

fixit_iterator clang::StoredDiagnostic::fixit_begin ( ) const
inline

Definition at line 1298 of file Diagnostic.h.

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

fixit_iterator clang::StoredDiagnostic::fixit_end ( ) const
inline

Definition at line 1299 of file Diagnostic.h.

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

unsigned clang::StoredDiagnostic::fixit_size ( ) const
inline

Definition at line 1300 of file Diagnostic.h.

ArrayRef<FixItHint> clang::StoredDiagnostic::getFixIts ( ) const
inline
unsigned clang::StoredDiagnostic::getID ( ) const
inline
DiagnosticsEngine::Level clang::StoredDiagnostic::getLevel ( ) const
inline
const FullSourceLoc& clang::StoredDiagnostic::getLocation ( ) const
inline
StringRef clang::StoredDiagnostic::getMessage ( ) const
inline
ArrayRef<CharSourceRange> clang::StoredDiagnostic::getRanges ( ) const
inline
clang::StoredDiagnostic::operator bool ( ) const
inlineexplicit

Evaluates true when this object stores a diagnostic.

Definition at line 1278 of file Diagnostic.h.

range_iterator clang::StoredDiagnostic::range_begin ( ) const
inline
range_iterator clang::StoredDiagnostic::range_end ( ) const
inline
unsigned clang::StoredDiagnostic::range_size ( ) const
inline

Definition at line 1290 of file Diagnostic.h.

void clang::StoredDiagnostic::setLocation ( FullSourceLoc  Loc)
inline

Definition at line 1285 of file Diagnostic.h.


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