Struct clang::Diagnostic
[−]
[src]
pub struct Diagnostic<'tu> { // some fields omitted }
A message from the compiler about an issue with a source file.
Methods
impl<'tu> Diagnostic<'tu>
[src]
fn format(&self, options: FormatOptions) -> String
Returns this diagnostic as a formatted string.
fn get_children(&self) -> Vec<Diagnostic>
Returns the child diagnostics of this diagnostic.
fn get_fix_its(&self) -> Vec<FixIt<'tu>>
Returns the fix-its for 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_severity(&self) -> Severity
Returns the severity of this diagnostic.
fn get_text(&self) -> String
Returns the text of this diagnostic.
Trait Implementations
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