AutosarC++17_10-A12.8.3¶
Moved-from object shall not be read-accessed
Required inputs: IR
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
moved_from_read |
Don’t read-access a moved-from object |
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
moving_functions¶
moving_functions : set[bauhaus.analysis.config.QualifiedName] = set()
read_move_function_exceptions¶
read_move_function_exceptions
Names of functions that are considered to leave the moved from objects in a well-specified state and are therefore except.Type: set[bauhaus.analysis.config.QualifiedName]
Default:
{'std::basic_filebuf::basic_filebuf', 'std::basic_filebuf::operator=', 'std::future::future', 'std::future::operator=', 'std::get', 'std::make_shared', 'std::make_unique', 'std::packaged_task::operator=', 'std::packaged_task::packaged_task', 'std::promise::operator=', 'std::promise::promise', 'std::shared_future::operator=', 'std::shared_future::shared_future', 'std::shared_lock::operator=', 'std::shared_lock::shared_lock', 'std::shared_ptr::operator=', 'std::shared_ptr::shared_ptr', 'std::thread::operator=', 'std::thread::thread', 'std::unique_lock::operator=', 'std::unique_lock::unique_lock', 'std::unique_ptr::operator=', 'std::unique_ptr::unique_ptr', 'std::weak_ptr::operator=', 'std::weak_ptr::weak_ptr'}
read_move_type_exceptions¶
read_move_type_exceptions : set[bauhaus.analysis.config.QualifiedName] = {'std::basic_ios'}
restore_subobjects_with_enclosing_objects¶
restore_subobjects_with_enclosing_objects : bool = True
restoring_functions¶
restoring_functions
Names of functions that are considered to restore an object to a well-specified state.Type: set[bauhaus.analysis.config.QualifiedName]
Default:
{'std::basic_string::clear', 'std::deque::clear', 'std::forward_list::clear', 'std::list::clear', 'std::map::clear', 'std::multimap::clear', 'std::multiset::clear', 'std::set::clear', 'std::unordered_map::clear', 'std::unordered_multimap::clear', 'std::unordered_multiset::clear', 'std::unordered_set::clear', 'std::vector::clear'}
use_static_semantic_analysis¶
use_static_semantic_analysis : bool = True
StaticSemanticAnalysis to be enabled, but also
will not produce any additional results if it is not.