pub struct TidyNotification {
pub filename: String,
pub line: u32,
pub cols: u32,
pub severity: String,
pub rationale: String,
pub diagnostic: String,
pub suggestion: Vec<String>,
pub fixed_lines: Vec<u32>,
}Expand description
A structure that represents a single notification parsed from clang-tidy’s stdout.
Fields§
§filename: StringThe file’s path and name (supposedly relative to the repository root folder).
line: u32The line number from which the notification originated.
cols: u32The column offset on the line from which the notification originated.
severity: StringThe severity (ie error/warning/note) of the TidyNotification::diagnostic
that caused the notification.
rationale: StringA helpful message explaining why the notification exists.
diagnostic: StringThe diagnostic name as used when configuring clang-tidy.
suggestion: Vec<String>A code block that points directly to the origin of the notification.
Sometimes, this code block doesn’t exist. Sometimes, it contains suggested fixes/advice. This information is purely superfluous.
fixed_lines: Vec<u32>The list of line numbers that had fixes applied via clang-tidy --fix-error.
Implementations§
Source§impl TidyNotification
impl TidyNotification
pub fn diagnostic_link(&self) -> String
Trait Implementations§
Source§impl Clone for TidyNotification
impl Clone for TidyNotification
Source§fn clone(&self) -> TidyNotification
fn clone(&self) -> TidyNotification
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for TidyNotification
impl RefUnwindSafe for TidyNotification
impl Send for TidyNotification
impl Sync for TidyNotification
impl Unpin for TidyNotification
impl UnwindSafe for TidyNotification
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more