AutosarC++17_10-M8.0.1¶
An init-declarator-list or a member-declarator-list shall consist of a single init-declarator or member-declarator respectively
Required inputs: IR
| Level | required |
|---|---|
| Target | implementation |
| Enforcement | automated |
Rationale
Where multiple declarators appear in the same declaration the type of an identifier may not meet developer expectations.
Example
int32_t i1; int32_t j1; // Compliant
int32_t i2, *j2; // Non-compliant
int32_t *i3,
&j3 = i2; // Non-compliant
See also
ISO/IEC 14882:2003 §9.2
Note
For legal reasons, this rule’s description is not part of the public documentation.