Miscellaneous-ForbiddenFunctions¶
Do not call certain functions from certain header files
Required inputs: IR
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
forbidden_libfunc_call |
Call to forbidden function. |
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
blacklist¶
blacklist
Dictionary of header globbing to (list of) function name globbing(s) of forbidden functions.Type: dict[bauhaus.analysis.config.FileGlobPattern, list[bauhaus.analysis.config.GlobPattern]]
Default:
{ 'setjmp.h': ['setjmp', 'longjmp'], 'signal.h': ['signal', 'raise'], 'stdlib.h': ['ato*', 'abort', 'exit', 'getenv', 'system'], 'string.h': ['str[!n]*'], 'time.*': ['*'] }