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

Subclass of DiagnosticRender that turns all subdiagostics into explicit notes. More...

#include "clang/Frontend/DiagnosticRenderer.h"

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

Public Member Functions

 DiagnosticNoteRenderer (const LangOptions &LangOpts, DiagnosticOptions *DiagOpts)
 
 ~DiagnosticNoteRenderer () override
 
void emitIncludeLocation (FullSourceLoc Loc, PresumedLoc PLoc) override
 
void emitImportLocation (FullSourceLoc Loc, PresumedLoc PLoc, StringRef ModuleName) override
 
void emitBuildingModuleLocation (FullSourceLoc Loc, PresumedLoc PLoc, StringRef ModuleName) override
 
virtual void emitNote (FullSourceLoc Loc, StringRef Message)=0
 
- Public Member Functions inherited from clang::DiagnosticRenderer
void emitDiagnostic (FullSourceLoc Loc, DiagnosticsEngine::Level Level, StringRef Message, ArrayRef< CharSourceRange > Ranges, ArrayRef< FixItHint > FixItHints, 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 (FullSourceLoc Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level, StringRef Message, ArrayRef< CharSourceRange > Ranges, DiagOrStoredDiag Info)=0
 
virtual void emitDiagnosticLoc (FullSourceLoc Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level, ArrayRef< CharSourceRange > Ranges)=0
 
virtual void emitCodeContext (FullSourceLoc Loc, DiagnosticsEngine::Level Level, SmallVectorImpl< CharSourceRange > &Ranges, ArrayRef< FixItHint > Hints)=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< DiagnosticOptionsDiagOpts
 
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 141 of file DiagnosticRenderer.h.

Constructor & Destructor Documentation

◆ DiagnosticNoteRenderer()

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

◆ ~DiagnosticNoteRenderer()

DiagnosticNoteRenderer::~DiagnosticNoteRenderer ( )
override

Definition at line 565 of file DiagnosticRenderer.cpp.

Member Function Documentation

◆ emitBuildingModuleLocation()

void DiagnosticNoteRenderer::emitBuildingModuleLocation ( FullSourceLoc  Loc,
PresumedLoc  PLoc,
StringRef  ModuleName 
)
overridevirtual

◆ emitImportLocation()

void DiagnosticNoteRenderer::emitImportLocation ( FullSourceLoc  Loc,
PresumedLoc  PLoc,
StringRef  ModuleName 
)
overridevirtual

◆ emitIncludeLocation()

void DiagnosticNoteRenderer::emitIncludeLocation ( FullSourceLoc  Loc,
PresumedLoc  PLoc 
)
overridevirtual

◆ emitNote()

virtual void clang::DiagnosticNoteRenderer::emitNote ( FullSourceLoc  Loc,
StringRef  Message 
)
pure virtual

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