class DiagnosticNoteRenderer
Declaration
class DiagnosticNoteRenderer : public DiagnosticRenderer { /* full declaration omitted */ };
Description
Subclass of DiagnosticRender that turns all subdiagostics into explicit notes. It is up to subclasses to further define the behavior.
Declared at: clang/include/clang/Frontend/DiagnosticRenderer.h:142
Inherits from: DiagnosticRenderer
Member Variables
Inherited from DiagnosticRenderer:
- protected LangOpts
- protected DiagOpts
- protected LastLoc
- protected LastIncludeLoc
- protected LastLevel = DiagnosticsEngine::Ignored
Method Overview
- public DiagnosticNoteRenderer(const clang::LangOptions & LangOpts, clang::DiagnosticOptions * DiagOpts)
- public void emitBuildingModuleLocation(clang::FullSourceLoc Loc, clang::PresumedLoc PLoc, llvm::StringRef ModuleName)
- public void emitImportLocation(clang::FullSourceLoc Loc, clang::PresumedLoc PLoc, llvm::StringRef ModuleName)
- public void emitIncludeLocation(clang::FullSourceLoc Loc, clang::PresumedLoc PLoc)
- public virtual void emitNote(clang::FullSourceLoc Loc, llvm::StringRef Message)
- public ~DiagnosticNoteRenderer()
Inherited from DiagnosticRenderer:
- protected beginDiagnostic
- protected emitBuildingModuleLocation
- protected emitCodeContext
- public emitDiagnostic
- protected emitDiagnosticLoc
- protected emitDiagnosticMessage
- protected emitImportLocation
- protected emitIncludeLocation
- public emitStoredDiagnostic
- protected endDiagnostic
Methods
¶DiagnosticNoteRenderer(
const clang::LangOptions& LangOpts,
clang::DiagnosticOptions* DiagOpts)
DiagnosticNoteRenderer(
const clang::LangOptions& LangOpts,
clang::DiagnosticOptions* DiagOpts)
Declared at: clang/include/clang/Frontend/DiagnosticRenderer.h:144
Parameters
- const clang::LangOptions& LangOpts
- clang::DiagnosticOptions* DiagOpts
¶void emitBuildingModuleLocation(
clang::FullSourceLoc Loc,
clang::PresumedLoc PLoc,
llvm::StringRef ModuleName)
void emitBuildingModuleLocation(
clang::FullSourceLoc Loc,
clang::PresumedLoc PLoc,
llvm::StringRef ModuleName)
Declared at: clang/include/clang/Frontend/DiagnosticRenderer.h:155
Parameters
- clang::FullSourceLoc Loc
- clang::PresumedLoc PLoc
- llvm::StringRef ModuleName
¶void emitImportLocation(
clang::FullSourceLoc Loc,
clang::PresumedLoc PLoc,
llvm::StringRef ModuleName)
void emitImportLocation(
clang::FullSourceLoc Loc,
clang::PresumedLoc PLoc,
llvm::StringRef ModuleName)
Declared at: clang/include/clang/Frontend/DiagnosticRenderer.h:152
Parameters
- clang::FullSourceLoc Loc
- clang::PresumedLoc PLoc
- llvm::StringRef ModuleName
¶void emitIncludeLocation(clang::FullSourceLoc Loc,
clang::PresumedLoc PLoc)
void emitIncludeLocation(clang::FullSourceLoc Loc,
clang::PresumedLoc PLoc)
Declared at: clang/include/clang/Frontend/DiagnosticRenderer.h:150
Parameters
¶virtual void emitNote(clang::FullSourceLoc Loc,
llvm::StringRef Message)
virtual void emitNote(clang::FullSourceLoc Loc,
llvm::StringRef Message)
Declared at: clang/include/clang/Frontend/DiagnosticRenderer.h:158
Parameters
- clang::FullSourceLoc Loc
- llvm::StringRef Message
¶~DiagnosticNoteRenderer()
~DiagnosticNoteRenderer()
Declared at: clang/include/clang/Frontend/DiagnosticRenderer.h:148