CertC++-ERRΒΆ
Error Handling
Nested Rules
Take care when reading errno |
|
Do not rely on indeterminate values of errno |
|
Detect and handle standard library errors |
|
Detect errors when converting a string to a number |
|
Do not abruptly terminate the program |
|
Handle all exceptions |
|
Do not use setjmp() or longjmp() |
|
Do not reference base classes or class data members in a constructor or destructor function-try-block handler |
|
Catch handlers should order their parameter types from most derived to least derived |
|
Honor exception specifications |
|
Guarantee exception safety |
|
Do not leak resources when handling exceptions |
|
Handle all exceptions thrown before main() begins executing |
|
Exception objects must be nothrow copy constructible |
|
Catch exceptions by lvalue reference |
|
Detect errors when converting a string to a number |
Options
Setting an option for this rule means setting the default for all nested rules.
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
This rule has no individual options.