Struct clang::diagnostic::DiagnosticFormatter [] [src]

pub struct DiagnosticFormatter<'tu> { /* fields omitted */ }

Builds formatted strings from diagnostics.

Methods

impl<'tu> DiagnosticFormatter<'tu>
[src]

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.

Sets whether the column will be included in the source location prefix.

Sets whether the source ranges will be included to the source location prefix.

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.

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.

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]

Returns a formatted string.

Trait Implementations

impl<'tu> Clone for DiagnosticFormatter<'tu>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'tu> Debug for DiagnosticFormatter<'tu>
[src]

Formats the value using the given formatter.