Qt-Autosar-A15.4.2¶
If a function is declared to be noexcept, noexcept(true) or noexcept(<true condition>), then it shall not exit with an exception
Required inputs: IR, StaticSemanticAnalysis
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
implicit_noexcept_spec_violation_without |
Function implicitly declared noexcept(false) but no exceptions will be thrown. |
None |
False |
noexcept_spec_violation_with |
Exception violates function’s noexcept-specification. |
None |
False |
noexcept_spec_violation_without |
Function declared noexcept(false) but no exceptions will be thrown. |
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
exclude_exception_base_classes¶
exclude_exception_base_classes : set[bauhaus.analysis.config.QualifiedName] = set()
generate_violation_path¶
generate_violation_path : bool = True
ignore_constructor_destructor¶
ignore_constructor_destructor : bool = False
ignore_implicit_noexcept_spec_lambda¶
ignore_implicit_noexcept_spec_lambda : bool = False
ignore_throwing_functions¶
ignore_throwing_functions : bool = False
ignore_unknown_routines¶
ignore_unknown_routines : bool = False
report_noexcept_false_violations¶
report_noexcept_false_violations : bool = False