AutosarC++17_10-M0.1.5

A project shall not contain unused type declarations

Required inputs: IR

Rationale

If a type is declared but not used, then it is unclear to a reviewer if the type is redundant or it has been left unused by mistake.

See Section 3.5 for associated library issues.

Example
int16_t unusedtype() 
{
typedef int16_t local_Type; // Non-compliant
return 67;
}

Note

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