I'm trying to create a static rule to check the token passing for defensive programming in a SIL4 application.
The rule is the following: "Each functions shall have a const uint_32 as last parameter"
ie:
uint_32 foo(uint_32 a, uint_32 b, const uint_32 c) ok
uint_32 foo(uint_32 a, uint_32 b, const uint_16 c) NOK
uint_32 foo(uint_32 a, uint_32 b, uint_32 c) NOK
uint_32 foo(uint_32 a, const uint_32 b, uint_32 c) NOK
There's someone that may help me? I'm groping in the dark