clang
3.9.0
|
Subclass of DiagnosticRender that turns all subdiagostics into explicit notes. More...
#include <DiagnosticRenderer.h>
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 |
![]() | |
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) |
Subclass of DiagnosticRender that turns all subdiagostics into explicit notes.
It is up to subclasses to further define the behavior.
Definition at line 155 of file DiagnosticRenderer.h.
|
inline |
Definition at line 157 of file DiagnosticRenderer.h.
|
override |
Definition at line 585 of file DiagnosticRenderer.cpp.
|
overridevirtual |
Implements clang::DiagnosticRenderer.
Definition at line 614 of file DiagnosticRenderer.cpp.
References emitNote(), clang::PresumedLoc::getFilename(), clang::PresumedLoc::getLine(), clang::PresumedLoc::isValid(), and SM.
|
overridevirtual |
Implements clang::DiagnosticRenderer.
Definition at line 598 of file DiagnosticRenderer.cpp.
References emitNote(), clang::PresumedLoc::getFilename(), clang::PresumedLoc::getLine(), clang::PresumedLoc::isValid(), and SM.
|
overridevirtual |
Implements clang::DiagnosticRenderer.
Definition at line 587 of file DiagnosticRenderer.cpp.
References emitNote(), clang::PresumedLoc::getFilename(), clang::PresumedLoc::getLine(), and SM.
|
pure virtual |
Referenced by emitBuildingModuleLocation(), emitImportLocation(), and emitIncludeLocation().