Qt-GlobalConstCharPointer

Finds places where const character pointers could be made read-only

Required inputs: IR

Finds place where you are using 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

level

level : int = 2

Importance level of the rule as given for clazy. 0 is most desirable, higher values fall off in quality.