Struct clang::diagnostic::Diagnostic
[−]
[src]
pub struct Diagnostic<'tu> { /* fields omitted */ }
A message from the compiler about an issue with a source file.
Methods
impl<'tu> Diagnostic<'tu>
[src]
fn get_severity(&self) -> Severity
Returns the severity of this diagnostic.
fn get_text(&self) -> String
Returns the text of this diagnostic.
fn get_location(&self) -> SourceLocation<'tu>
Returns the source location of this diagnostic.
fn get_ranges(&self) -> Vec<SourceRange<'tu>>
Returns the source ranges of this diagnostic.
fn get_fix_its(&self) -> Vec<FixIt<'tu>>
Returns the fix-its for this diagnostic.
fn get_children(&self) -> Vec<Diagnostic>
Returns the child diagnostics of this diagnostic.
fn formatter(&self) -> DiagnosticFormatter<'tu>
Returns a diagnostic formatter that builds a formatted string from this diagnostic.
Trait Implementations
impl<'tu> Copy for Diagnostic<'tu>
[src]
impl<'tu> Clone for Diagnostic<'tu>
[src]
fn clone(&self) -> Diagnostic<'tu>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<'tu> PartialOrd for Diagnostic<'tu>
[src]
Orders by severity.
fn partial_cmp(&self, other: &Diagnostic<'tu>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more