pub struct AnalysisConfig {
pub max_instructions: usize,
pub max_functions: usize,
pub max_total_instructions: usize,
pub max_loops: usize,
pub max_total_loop_body_blocks: usize,
pub detect_loops: bool,
pub calculate_metrics: bool,
pub enable_cognitive_complexity: bool,
pub enable_advanced_loops: bool,
}Expand description
Configuration for control flow analysis
Fields§
§max_instructions: usizeMaximum number of instructions accepted per function.
max_functions: usizeMaximum number of discovered functions accepted for one analysis.
max_total_instructions: usizeMaximum number of instructions accepted across all discovered functions.
max_loops: usizeMaximum number of advanced loops retained across one analysis.
max_total_loop_body_blocks: usizeMaximum aggregate number of basic-block memberships retained in loops.
A block that belongs to two loops consumes two memberships.
detect_loops: boolEnable loop detection
calculate_metrics: boolEnable complexity metrics calculation
enable_cognitive_complexity: boolEnable cognitive complexity calculation
enable_advanced_loops: boolEnable advanced loop analysis
Trait Implementations§
Source§impl Clone for AnalysisConfig
impl Clone for AnalysisConfig
Source§impl Debug for AnalysisConfig
impl Debug for AnalysisConfig
Auto Trait Implementations§
impl Freeze for AnalysisConfig
impl RefUnwindSafe for AnalysisConfig
impl Send for AnalysisConfig
impl Sync for AnalysisConfig
impl Unpin for AnalysisConfig
impl UnsafeUnpin for AnalysisConfig
impl UnwindSafe for AnalysisConfig
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