clang  3.7.0
Public Member Functions | List of all members
clang::DiagnosticNoteRenderer Class Referenceabstract

#include <DiagnosticRenderer.h>

Inheritance diagram for clang::DiagnosticNoteRenderer:
[legend]
Collaboration diagram for clang::DiagnosticNoteRenderer:
[legend]

Public Member Functions

 DiagnosticNoteRenderer (const LangOptions &LangOpts, DiagnosticOptions *DiagOpts)
 
 ~DiagnosticNoteRenderer () override
 
void emitIncludeLocation (SourceLocation Loc, PresumedLoc PLoc, const SourceManager &SM) override
 
void emitImportLocation (SourceLocation Loc, PresumedLoc PLoc, StringRef ModuleName, const SourceManager &SM) override
 
void emitBuildingModuleLocation (SourceLocation Loc, PresumedLoc PLoc, StringRef ModuleName, const SourceManager &SM) override
 
virtual void emitNote (SourceLocation Loc, StringRef Message, const SourceManager *SM)=0
 
- Public Member Functions inherited from clang::DiagnosticRenderer
void emitDiagnostic (SourceLocation Loc, DiagnosticsEngine::Level Level, StringRef Message, ArrayRef< CharSourceRange > Ranges, ArrayRef< FixItHint > FixItHints, const SourceManager *SM, DiagOrStoredDiag D=(Diagnostic *) nullptr)
 Emit a diagnostic. More...
 
void emitStoredDiagnostic (StoredDiagnostic &Diag)
 

Additional Inherited Members

- Protected Member Functions inherited from clang::DiagnosticRenderer
 DiagnosticRenderer (const LangOptions &LangOpts, DiagnosticOptions *DiagOpts)
 
virtual ~DiagnosticRenderer ()
 
virtual void emitDiagnosticMessage (SourceLocation Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level, StringRef Message, ArrayRef< CharSourceRange > Ranges, const SourceManager *SM, DiagOrStoredDiag Info)=0
 
virtual void emitDiagnosticLoc (SourceLocation Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level, ArrayRef< CharSourceRange > Ranges, const SourceManager &SM)=0
 
virtual void emitCodeContext (SourceLocation Loc, DiagnosticsEngine::Level Level, SmallVectorImpl< CharSourceRange > &Ranges, ArrayRef< FixItHint > Hints, const SourceManager &SM)=0
 
virtual void beginDiagnostic (DiagOrStoredDiag D, DiagnosticsEngine::Level Level)
 
virtual void endDiagnostic (DiagOrStoredDiag D, DiagnosticsEngine::Level Level)
 
- Protected Attributes inherited from clang::DiagnosticRenderer
const LangOptionsLangOpts
 
IntrusiveRefCntPtr
< DiagnosticOptions
DiagOpts
 
SourceLocation LastLoc
 The location of the previous diagnostic if known. More...
 
SourceLocation LastIncludeLoc
 The location of the last include whose stack was printed if known. More...
 
DiagnosticsEngine::Level LastLevel
 The level of the last diagnostic emitted. More...
 

Detailed Description

Subclass of DiagnosticRender that turns all subdiagostics into explicit notes. It is up to subclasses to further define the behavior.

Definition at line 153 of file DiagnosticRenderer.h.

Constructor & Destructor Documentation

clang::DiagnosticNoteRenderer::DiagnosticNoteRenderer ( const LangOptions LangOpts,
DiagnosticOptions DiagOpts 
)
inline

Definition at line 155 of file DiagnosticRenderer.h.

DiagnosticNoteRenderer::~DiagnosticNoteRenderer ( )
override

Definition at line 475 of file DiagnosticRenderer.cpp.

Member Function Documentation

void DiagnosticNoteRenderer::emitBuildingModuleLocation ( SourceLocation  Loc,
PresumedLoc  PLoc,
StringRef  ModuleName,
const SourceManager SM 
)
overridevirtual
void DiagnosticNoteRenderer::emitImportLocation ( SourceLocation  Loc,
PresumedLoc  PLoc,
StringRef  ModuleName,
const SourceManager SM 
)
overridevirtual
void DiagnosticNoteRenderer::emitIncludeLocation ( SourceLocation  Loc,
PresumedLoc  PLoc,
const SourceManager SM 
)
overridevirtual
virtual void clang::DiagnosticNoteRenderer::emitNote ( SourceLocation  Loc,
StringRef  Message,
const SourceManager SM 
)
pure virtual

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