~TextDiagnosticPrinter() override
void BeginSourceFile(const LangOptions &LO, const Preprocessor *PP) override
Callback to inform the diagnostic client that processing of a source file is beginning.
void EndSourceFile() override
Callback to inform the diagnostic client that processing of a source file has ended.
void setPrefix(std::string Value)
setPrefix - Set the diagnostic printer prefix string, which will be printed at the start of any diagn...
TextDiagnosticPrinter(raw_ostream &os, DiagnosticOptions &DiagOpts, bool OwnsOutputStream=false)
void HandleDiagnostic(DiagnosticsEngine::Level Level, const Diagnostic &Info) override
Handle this diagnostic, reporting it to the user or capturing it to a log as needed.
Class to encapsulate the logic for formatting and printing a textual diagnostic message.