clang 19.0.0git
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]

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.
 
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 emitIncludeLocation (FullSourceLoc Loc, PresumedLoc PLoc)=0
 
virtual void emitImportLocation (FullSourceLoc Loc, PresumedLoc PLoc, StringRef ModuleName)=0
 
virtual void emitBuildingModuleLocation (FullSourceLoc Loc, PresumedLoc PLoc, StringRef ModuleName)=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.
 
SourceLocation LastIncludeLoc
 The location of the last include whose stack was printed if known.
 
DiagnosticsEngine::Level LastLevel = DiagnosticsEngine::Ignored
 The level of the last diagnostic emitted.
 

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 142 of file DiagnosticRenderer.h.

Constructor & Destructor Documentation

◆ DiagnosticNoteRenderer()

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

Definition at line 144 of file DiagnosticRenderer.h.

◆ ~DiagnosticNoteRenderer()

DiagnosticNoteRenderer::~DiagnosticNoteRenderer ( )
overridedefault

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: