clang API Documentation
#include <DiagnosticRenderer.h>


Public Member Functions | |
| DiagnosticNoteRenderer (const LangOptions &LangOpts, DiagnosticOptions *DiagOpts) | |
| virtual | ~DiagnosticNoteRenderer () |
| 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 |
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.
| clang::DiagnosticNoteRenderer::DiagnosticNoteRenderer | ( | const LangOptions & | LangOpts, |
| DiagnosticOptions * | DiagOpts | ||
| ) | [inline] |
Definition at line 155 of file DiagnosticRenderer.h.
| DiagnosticNoteRenderer::~DiagnosticNoteRenderer | ( | ) | [virtual] |
Definition at line 475 of file DiagnosticRenderer.cpp.
| void DiagnosticNoteRenderer::emitBuildingModuleLocation | ( | SourceLocation | Loc, |
| PresumedLoc | PLoc, | ||
| StringRef | ModuleName, | ||
| const SourceManager & | SM | ||
| ) | [override, virtual] |
Implements clang::DiagnosticRenderer.
Definition at line 501 of file DiagnosticRenderer.cpp.
References emitNote(), clang::PresumedLoc::getFilename(), clang::PresumedLoc::getLine(), and SM.
| void DiagnosticNoteRenderer::emitImportLocation | ( | SourceLocation | Loc, |
| PresumedLoc | PLoc, | ||
| StringRef | ModuleName, | ||
| const SourceManager & | SM | ||
| ) | [override, virtual] |
Implements clang::DiagnosticRenderer.
Definition at line 488 of file DiagnosticRenderer.cpp.
References emitNote(), clang::PresumedLoc::getFilename(), clang::PresumedLoc::getLine(), and SM.
| void DiagnosticNoteRenderer::emitIncludeLocation | ( | SourceLocation | Loc, |
| PresumedLoc | PLoc, | ||
| const SourceManager & | SM | ||
| ) | [override, virtual] |
Implements clang::DiagnosticRenderer.
Definition at line 477 of file DiagnosticRenderer.cpp.
References emitNote(), clang::PresumedLoc::getFilename(), clang::PresumedLoc::getLine(), and SM.
| virtual void clang::DiagnosticNoteRenderer::emitNote | ( | SourceLocation | Loc, |
| StringRef | Message, | ||
| const SourceManager * | SM | ||
| ) | [pure virtual] |
Referenced by emitBuildingModuleLocation(), emitImportLocation(), and emitIncludeLocation().