clang 20.0.0git
|
Subclass of DiagnosticRender that turns all subdiagostics into explicit notes. More...
#include "clang/Frontend/DiagnosticRenderer.h"
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) |
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.
|
inline |
Definition at line 144 of file DiagnosticRenderer.h.
|
overridedefault |
|
overridevirtual |
Implements clang::DiagnosticRenderer.
Definition at line 619 of file DiagnosticRenderer.cpp.
References emitNote(), clang::PresumedLoc::getFilename(), clang::PresumedLoc::getLine(), clang::PresumedLoc::isValid(), and Loc.
|
overridevirtual |
Implements clang::DiagnosticRenderer.
Definition at line 605 of file DiagnosticRenderer.cpp.
References emitNote(), clang::PresumedLoc::getFilename(), clang::PresumedLoc::getLine(), clang::PresumedLoc::isValid(), and Loc.
|
overridevirtual |
Implements clang::DiagnosticRenderer.
Definition at line 595 of file DiagnosticRenderer.cpp.
References emitNote(), clang::PresumedLoc::getFilename(), clang::PresumedLoc::getLine(), and Loc.
|
pure virtual |
Referenced by emitBuildingModuleLocation(), emitImportLocation(), and emitIncludeLocation().