Miscellaneous-NoMalloc¶
The library functions “malloc”, “calloc”, “realloc”, and “free” from library <stdlib.h> shall not be used
Required inputs: IR
std::unique_ptr, std::shared_ptr and std::vector.
Note: this rule only reports the C functions,
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
stdlib_memory_function_call |
Dynamic memory management function from <stdlib.h> is called. |
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
allow_in_user_new_delete_operator¶
allow_in_user_new_delete_operator : bool = False