AutosarC++17_03-M16.3.2¶
The # and ## operators should not be used
Required inputs: IR
| Level | advisory |
|---|---|
| Target | implementation |
| Enforcement | automated |
[Unspecified 16.3.2(2), 16.3.3(3), Undefined 16.3.2(2), 16.3.3(3)]
Rationale
The order of evaluation associated with both the # and ## preprocessor operators is unspecified. Compilers have been known to implement these operators inconsistently, therefore, to avoid these problems, do not use them.
Example
#define A(Y) #Y // Non-compliant
#define A(X,Y) X##Y // Non-compliant
Note
For legal reasons, this rule’s description is not part of the public documentation.