DiagnosticDirectiveInfo struct
#include <slang/text/SourceManager.h>
Stores information specified in a pragma diagnostic directive, which alters the currently active set of diagnostic mappings.
Public types
- enum Kind: uint8_t { Mapping, WaiverBegin, WaiverEnd }
- The kind of diagnostic directive.
Public variables
-
std::
string_view name - The name of the diagnostic being controlled.
- size_t offset
- Offset in the source where the directive occurred.
- DiagnosticSeverity severity
- The new severity the diagnostic should have.
- Kind kind
- The kind of directive.
Enum documentation
enum slang:: SourceManager:: DiagnosticDirectiveInfo:: Kind: uint8_t
The kind of diagnostic directive.
| Enumerators | |
|---|---|
| Mapping |
Sets the severity of the named diagnostic from this point onward. |
| WaiverBegin |
Begins a waiver region in which the named diagnostic is suppressed. |
| WaiverEnd |
Ends a waiver region previously started by a WaiverBegin directive. |