class
#include <slang/diagnostics/Diagnostics.h>
Diagnostics A collection of diagnostics.
Contents
- Reference
Base classes
-
template<typename T, size_t N>class SmallVectorSized<Diagnostic, 2>
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.