pub struct ClangParams {
pub tidy_checks: String,
pub lines_changed_only: LinesChangedOnly,
pub database: Option<PathBuf>,
pub extra_args: Vec<String>,
pub database_json: Option<Vec<CompilationUnit>>,
pub style: String,
pub clang_tidy_command: Option<PathBuf>,
pub clang_format_command: Option<PathBuf>,
pub tidy_filter: Option<FileFilter>,
pub format_filter: Option<FileFilter>,
pub tidy_review: bool,
pub format_review: bool,
}
Expand description
A data structure to contain CLI options that relate to clang-tidy or clang-format arguments.
Fields§
§tidy_checks: String
§lines_changed_only: LinesChangedOnly
§database: Option<PathBuf>
§extra_args: Vec<String>
§database_json: Option<Vec<CompilationUnit>>
§style: String
§clang_tidy_command: Option<PathBuf>
§clang_format_command: Option<PathBuf>
§tidy_filter: Option<FileFilter>
§format_filter: Option<FileFilter>
§tidy_review: bool
§format_review: bool
Trait Implementations§
Source§impl Clone for ClangParams
impl Clone for ClangParams
Source§fn clone(&self) -> ClangParams
fn clone(&self) -> ClangParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ClangParams
impl Debug for ClangParams
Source§impl Default for ClangParams
impl Default for ClangParams
Source§fn default() -> ClangParams
fn default() -> ClangParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClangParams
impl RefUnwindSafe for ClangParams
impl Send for ClangParams
impl Sync for ClangParams
impl Unpin for ClangParams
impl UnwindSafe for ClangParams
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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