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

Inherited from DiagnosticRenderer:

Methods

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)

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)

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)

Declared at: clang/include/clang/Frontend/DiagnosticRenderer.h:150

Parameters

clang::FullSourceLoc Loc
clang::PresumedLoc PLoc

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()

Declared at: clang/include/clang/Frontend/DiagnosticRenderer.h:148