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 more