AutosarC++18_03-M5.18.1¶
The comma operator shall not be used
Required inputs: IR
| Level | required |
|---|---|
| Target | implementation |
| Enforcement | automated |
Rationale
Use of the comma operator is generally detrimental to the readability of code, and the same effect can be achieved by other means.
Example
f ( ( 1, 2 ), 3 ); // Non-compliant – how many parameters?
Note
For legal reasons, this rule’s description is not part of the public documentation.