AutosarC++18_03-A12.8.1¶
Move and copy constructors shall only move and respectively copy base classes and data members of a class, without any side effects
Required inputs: IR
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
copy_ctor_with_side_effect |
Copy Constructor has side-effect |
None |
False |
move_ctor_with_side_effect |
Move Constructor has side-effect |
None |
False |
Options¶
This rule shares the following common options: exclude_in_macros, exclude_messages_in_system_headers, excludes, extend_exclude_to_macro_invocations, includes, justification_checker, languages, post_processing, provider, report_at, severity
The following places define options that affect this rule: Stylechecks, Analysis-GlobalOptions
report_copy_constructor¶
report_copy_constructor : bool = True
report_move_constructor¶
report_move_constructor : bool = True