Qt-GlobalConstCharPointer¶
Finds places where const character pointers could be made read-only
Required inputs: IR
const char *foo instead
of const char *const foo or const char []foo. The
former case adds a pointer in .data, pointing to .rodata. The latter cases only
use .rodata (a read-only segment).This rule is based on clazy rule global-const-char-pointer
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
non_const_global_char_pointer |
Character pointer is not const. |
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
level¶
level : int = 2