slang::Diagnostics class

A collection of diagnostics.

Contents

Base classes

template<typename T, size_t N>
class SmallVectorSized

Public functions

auto add(DiagCode code, SourceLocation location) -> Diagnostic&
Adds a new diagnostic to the collection, pointing to the given source location.
auto add(DiagCode code, SourceRange range) -> Diagnostic&
Adds a new diagnostic to the collection, highlighting the given source range.
auto add(const Symbol& source, DiagCode code, SourceLocation location) -> Diagnostic&
Adds a new diagnostic to the collection, pointing to the given source location.
auto add(const Symbol& source, DiagCode code, SourceRange range) -> Diagnostic&
Adds a new diagnostic to the collection, highlighting the given source range.
void sort(const SourceManager& sourceManager)
Sorts the diagnostics in the collection based on source file and line number.