SecureCoding-5.28¶
Modifying string literals
Required inputs: IR
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
call_with_const |
Result of call to {}() with ‘{}’ input should be used as ‘const {}*’. |
None |
False |
call_with_literal |
Result of call to {}() with string literal should be used as ‘const {}*’. |
None |
False |
nonconst_string_literal |
String literal should only be used as ‘const char*’ |
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
funcs¶
funcs
Functions to check.Type: set[bauhaus.analysis.config.QualifiedName]
Default:
{'memchr', 'strchr', 'strpbrk', 'strrchr', 'strstr', 'wcschr', 'wcspbrk', 'wcsrchr', 'wcsstr', 'wmemchr'}