pub enum DiagnosticSeverity {
DSError,
DSWarning,
DSRemark,
DSNote,
}
Expand description
Wrapper for LLVMDiagnosticSeverity
, representing the severity levels of diagnostics in LLVM.
The DiagnosticSeverity
enum maps to the LLVMDiagnosticSeverity
in the LLVM core library. It categorizes
the severity levels of diagnostic messages that can be generated by LLVM during compilation or other processing.
This enum helps identify the nature of the diagnostic messages, such as errors, warnings, remarks, and notes.
Variants§
DSError
Represents an error diagnostic. Errors indicate critical issues that typically prevent the code from compiling successfully.
DSWarning
Represents a warning diagnostic. Warnings indicate potential issues that do not stop compilation but could lead to problems.
DSRemark
Represents a remark diagnostic. Remarks provide additional information that might be useful but is not necessarily problematic.
DSNote
Represents a note diagnostic. Notes usually provide supplementary information related to warnings or errors.
Trait Implementations§
Source§impl Clone for DiagnosticSeverity
impl Clone for DiagnosticSeverity
Source§fn clone(&self) -> DiagnosticSeverity
fn clone(&self) -> DiagnosticSeverity
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more