Struct clang::diagnostic::DiagnosticFormatter
[−]
[src]
pub struct DiagnosticFormatter<'tu> { /* fields omitted */ }
Builds formatted strings from diagnostics.
Methods
impl<'tu> DiagnosticFormatter<'tu>
[src]
pub fn source_location(
&mut self,
source_location: bool
) -> &mut DiagnosticFormatter<'tu>
[src]
&mut self,
source_location: bool
) -> &mut DiagnosticFormatter<'tu>
Sets whether the diagnostic text will be prefixed by the file and line of the source location the diagnostic indicates. This prefix may also contain column and/or source range information.
pub fn column(&mut self, column: bool) -> &mut DiagnosticFormatter<'tu>
[src]
Sets whether the column will be included in the source location prefix.
pub fn source_ranges(
&mut self,
source_ranges: bool
) -> &mut DiagnosticFormatter<'tu>
[src]
&mut self,
source_ranges: bool
) -> &mut DiagnosticFormatter<'tu>
Sets whether the source ranges will be included to the source location prefix.
pub fn option(&mut self, option: bool) -> &mut DiagnosticFormatter<'tu>
[src]
Sets whether the option associated with the diagnostic (e.g., -Wconversion
) will be
placed in brackets after the diagnostic text if there is such an option.
pub fn category_id(
&mut self,
category_id: bool
) -> &mut DiagnosticFormatter<'tu>
[src]
&mut self,
category_id: bool
) -> &mut DiagnosticFormatter<'tu>
Sets whether the category number associated with the diagnostic will be placed in brackets after the diagnostic text if there is such a category number.
pub fn category_name(
&mut self,
category_name: bool
) -> &mut DiagnosticFormatter<'tu>
[src]
&mut self,
category_name: bool
) -> &mut DiagnosticFormatter<'tu>
Sets whether the category name associated with the diagnostic will be placed in brackets after the diagnostic text if there is such a category name.
impl<'tu> DiagnosticFormatter<'tu>
[src]
Trait Implementations
impl<'tu> Clone for DiagnosticFormatter<'tu>
[src]
fn clone(&self) -> DiagnosticFormatter<'tu>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more