AutosarC++18_03-M5.0.17

Subtraction between pointers shall only be applied to pointers that address elements of the same array

Required inputs: IR, StaticSemanticAnalysis

This check looks for pointer subtraction between pointers not referring to the same object (usually, an array).

Note

For legal reasons, this rule’s description is not part of the public documentation.