slang::DiagnosticClient class

A base class for diagnostic clients, which receive issued diagnostics and present them to the user in some form.

Public functions

void report(const ReportedDiagnostic& diagnostic) pure virtual
Called when a diagnostic is issued by the engine.
void setEngine(const DiagnosticEngine& engine)
Sets the engine that this client is associated with.
void showAbsPaths(bool set)
Sets whether displayed filenames for diagnostics should be made absolute, or whether to use the relative path.

Function documentation

void slang::DiagnosticClient::setEngine(const DiagnosticEngine& engine)

Sets the engine that this client is associated with.

This is called by the engine when the client is added to it.