clang  6.0.0svn
Public Types | Public Member Functions | List of all members
clang::TextDiagnosticBuffer Class Reference

#include "clang/Frontend/TextDiagnosticBuffer.h"

Inheritance diagram for clang::TextDiagnosticBuffer:
Inheritance graph
[legend]
Collaboration diagram for clang::TextDiagnosticBuffer:
Collaboration graph
[legend]

Public Types

typedef std::vector< std::pair< SourceLocation, std::string > > DiagList
 
typedef DiagList::iterator iterator
 
typedef DiagList::const_iterator const_iterator
 

Public Member Functions

const_iterator err_begin () const
 
const_iterator err_end () const
 
const_iterator warn_begin () const
 
const_iterator warn_end () const
 
const_iterator remark_begin () const
 
const_iterator remark_end () const
 
const_iterator note_begin () const
 
const_iterator note_end () const
 
void HandleDiagnostic (DiagnosticsEngine::Level DiagLevel, const Diagnostic &Info) override
 HandleDiagnostic - Store the errors, warnings, and notes that are reported. More...
 
void FlushDiagnostics (DiagnosticsEngine &Diags) const
 FlushDiagnostics - Flush the buffered diagnostics to an given diagnostic engine. More...
 
- Public Member Functions inherited from clang::DiagnosticConsumer
 DiagnosticConsumer ()=default
 
virtual ~DiagnosticConsumer ()
 
unsigned getNumErrors () const
 
unsigned getNumWarnings () const
 
virtual void clear ()
 
virtual void BeginSourceFile (const LangOptions &LangOpts, const Preprocessor *PP=nullptr)
 Callback to inform the diagnostic client that processing of a source file is beginning. More...
 
virtual void EndSourceFile ()
 Callback to inform the diagnostic client that processing of a source file has ended. More...
 
virtual void finish ()
 Callback to inform the diagnostic client that processing of all source files has ended. More...
 
virtual bool IncludeInDiagnosticCounts () const
 Indicates whether the diagnostics handled by this DiagnosticConsumer should be included in the number of diagnostics reported by DiagnosticsEngine. More...
 

Additional Inherited Members

- Protected Attributes inherited from clang::DiagnosticConsumer
unsigned NumWarnings = 0
 Number of warnings reported. More...
 
unsigned NumErrors = 0
 Number of errors reported. More...
 

Detailed Description

Definition at line 25 of file TextDiagnosticBuffer.h.

Member Typedef Documentation

◆ const_iterator

typedef DiagList::const_iterator clang::TextDiagnosticBuffer::const_iterator

Definition at line 29 of file TextDiagnosticBuffer.h.

◆ DiagList

typedef std::vector<std::pair<SourceLocation, std::string> > clang::TextDiagnosticBuffer::DiagList

Definition at line 27 of file TextDiagnosticBuffer.h.

◆ iterator

typedef DiagList::iterator clang::TextDiagnosticBuffer::iterator

Definition at line 28 of file TextDiagnosticBuffer.h.

Member Function Documentation

◆ err_begin()

const_iterator clang::TextDiagnosticBuffer::err_begin ( ) const
inline

Definition at line 33 of file TextDiagnosticBuffer.h.

Referenced by CheckResults(), and FlushDiagnostics().

◆ err_end()

const_iterator clang::TextDiagnosticBuffer::err_end ( ) const
inline

Definition at line 34 of file TextDiagnosticBuffer.h.

Referenced by CheckResults(), and FlushDiagnostics().

◆ FlushDiagnostics()

void TextDiagnosticBuffer::FlushDiagnostics ( DiagnosticsEngine Diags) const

◆ HandleDiagnostic()

void TextDiagnosticBuffer::HandleDiagnostic ( DiagnosticsEngine::Level  DiagLevel,
const Diagnostic Info 
)
overridevirtual

◆ note_begin()

const_iterator clang::TextDiagnosticBuffer::note_begin ( ) const
inline

Definition at line 42 of file TextDiagnosticBuffer.h.

Referenced by CheckResults(), and FlushDiagnostics().

◆ note_end()

const_iterator clang::TextDiagnosticBuffer::note_end ( ) const
inline

Definition at line 43 of file TextDiagnosticBuffer.h.

References FlushDiagnostics(), and HandleDiagnostic().

Referenced by CheckResults(), and FlushDiagnostics().

◆ remark_begin()

const_iterator clang::TextDiagnosticBuffer::remark_begin ( ) const
inline

Definition at line 39 of file TextDiagnosticBuffer.h.

Referenced by CheckResults(), and FlushDiagnostics().

◆ remark_end()

const_iterator clang::TextDiagnosticBuffer::remark_end ( ) const
inline

Definition at line 40 of file TextDiagnosticBuffer.h.

Referenced by CheckResults(), and FlushDiagnostics().

◆ warn_begin()

const_iterator clang::TextDiagnosticBuffer::warn_begin ( ) const
inline

Definition at line 36 of file TextDiagnosticBuffer.h.

Referenced by CheckResults(), and FlushDiagnostics().

◆ warn_end()

const_iterator clang::TextDiagnosticBuffer::warn_end ( ) const
inline

Definition at line 37 of file TextDiagnosticBuffer.h.

Referenced by CheckResults(), and FlushDiagnostics().


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