AutosarC++19_03-A12.8.5¶
A copy assignment and a move assignment operator shall handle self-assignment
Required inputs: IR
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
incomplete_swap |
Swap does not handle all non-static data members. |
None |
False |
self_assignment |
Missing or non-compliant guard against self-assignment. |
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
allowed_comparison_operators¶
allowed_comparison_operators : set[bauhaus.ir.PIR_Class_Name] = {'Equal', 'Unequal'}
self_assignment_check_must_be_first_statement¶
self_assignment_check_must_be_first_statement : bool = False