Loom C API
Public Loom compiler C API
Loading...
Searching...
No Matches
diagnostic.h File Reference

Structured diagnostics produced by completed operations. More...

Go to the source code of this file.

Data Structures

struct  loomc_source_range_t
 Source range attached to a diagnostic. More...
struct  loomc_diagnostic_t
 Borrowed diagnostic view owned by a result object. More...

Enumerations

enum  loomc_diagnostic_severity_t { LOOMC_DIAGNOSTIC_SEVERITY_NOTE = 0 , LOOMC_DIAGNOSTIC_SEVERITY_WARNING = 1 , LOOMC_DIAGNOSTIC_SEVERITY_ERROR = 2 }
 Diagnostic severity. More...

Detailed Description

Structured diagnostics produced by completed operations.

Diagnostics describe source, configuration, linker, compiler, and lowering outcomes that belong to an operation result. They are typed data so bindings can expose native diagnostic objects instead of parsing strings.

Enumeration Type Documentation

◆ loomc_diagnostic_severity_t

Diagnostic severity.

Enumerator
LOOMC_DIAGNOSTIC_SEVERITY_NOTE 

Informational note.

LOOMC_DIAGNOSTIC_SEVERITY_WARNING 

Warning that does not make the operation fail.

LOOMC_DIAGNOSTIC_SEVERITY_ERROR 

Error that makes the operation fail.