CodingStyle-NoWhitespacePointerReference¶
Whitespace rule in declarations before (or after) * or &
Required inputs: IR
* or &
in declarations. With option report_after_sigil
also whitespace between * or & and identifier is reported.
Whitespace between the type and a left parenthesis is not checked. The other options
actually support to require some whitespace or exactly one space.Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
no_single_space_between |
Use single space between {}. |
None |
False |
no_whitespace_between |
Add whitespace between {}. |
None |
False |
space_in_sigil |
Remove space in {}. |
None |
False |
whitespace_between |
Avoid whitespace between {}. |
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
report_after_sigil¶
report_after_sigil : bool = False
* or & and identifier.
report_at_token¶
report_at_token : bool = False
* *, more precise.
report_before_sigil¶
report_before_sigil : bool = True
* or &.
require_single_space_after¶
require_single_space_after : bool = False
* or &. If true,
supersedes require_space_after.
require_single_space_before¶
require_single_space_before : bool = False
* or &. If true,
supersedes require_space_before.
require_space_after¶
require_space_after : bool = False
* or &.
require_space_before¶
require_space_before : bool = False
* or &.
treat_left_paren_as_type¶
treat_left_paren_as_type : bool = True
int (*f) the left parenthesis is treated as the type token for
the spacing. If false, whitespace between ( and * or
& is not checked.