AutosarC++18_10-A18.0.2

The error state of a conversion from string to a numeric value shall be checked

Required inputs: IR

Possible Messages

Key

Text

Severity

Disabled

forbidden_libheader_symbol_use

Usage of forbidden entity from <{}>.

None

False

missing_basic_ios_fail

Use basic_ios::fail() after reading from input streams.

None

False

Options

check_functions

check_functions : set[bauhaus.analysis.config.QualifiedName] = {'std::basic_ios::fail', 'std::ios_base::fail'}

Fully qualified names of functions to check the state of the input stream.
 

functions_to_check

functions_to_check : set[bauhaus.analysis.config.QualifiedName] = {'std::basic_istream::operator>>'}

Fully qualified names of functions after which a call to one of the check functions is required.
 

included_headers

included_headers : bool = True

Whether the rule should also look in headers included by the configured symbol_header.
 

symbol_header

symbol_header : set[str] = set()

Name of the system or user header files of which the symbols should not be used.
 

symbols

symbols : set[bauhaus.analysis.config.QualifiedName] = {'atof', 'atoi', 'atol', 'atoll'}

Names of symbols which are forbidden.
 

system_symbol_header

system_symbol_header : set[str] = {'stdlib'}

Name of the system header files of which the symbols should not be used.
 

translate_header_name

translate_header_name : bool = True

Whether to auto-translate the symbol_header (e.g. stdlib{.h} -> cstdlib).
 

user_symbol_header

user_symbol_header : set[str] = set()

Name of the user header files of which the symbols should not be used.