Loom C API
Public Loom compiler C API
Loading...
Searching...
No Matches
loomc_diagnostic_t Struct Reference

Borrowed diagnostic view owned by a result object. More...

#include <diagnostic.h>

Data Fields

loomc_diagnostic_severity_t severity
 Diagnostic severity.
loomc_string_view_t code
 Stable diagnostic code.
loomc_string_view_t message
 Human-readable rendered message.
loomc_source_range_t range
 Primary source range.
const loomc_diagnostic_related_location_t * related_locations
 Related locations in producer order, or NULL when the count is zero.
loomc_host_size_t related_location_count
 Number of entries in related_locations.
loomc_host_size_t related_location_omitted_count
 Number of additional resolved locations omitted by the producer's limit.

Detailed Description

Borrowed diagnostic view owned by a result object.

Lifetime
Diagnostic strings, related locations, and source ranges are owned by the result that returned this view. They remain valid until that result is released.

The documentation for this struct was generated from the following file: