Hi all, i'm facing a problem with MISRA rule 7.3.
This rule indicates that the suffix 'l' shouldn't not be used.
Prefer using 'L' suffix if needed.
But the rule generates false positive on my struct.
typedef struct
{
/** Frequency of clock A in Hz (set 0 to turn it off) */
uint32_t ul_clka;
/** Frequency of clock B in Hz (set 0 to turn it off) */
uint32_t ul_clkb;
/** Frequency of master clock in Hz */
uint32_t ul_mck;
} pwm_clock_t;
I'm using CppCheck 2.3 on Windows 10.
I have attached small code.
The command is:
"c:\Program Files\Cppcheck\cppcheck.exe" --enable=all --inline-suppr --suppress=unusedFunction --suppress=missingInclude --addon=misra.json misra_7_3.c
Hi all, i'm facing a problem with MISRA rule 7.3.
This rule indicates that the suffix 'l' shouldn't not be used.
Prefer using 'L' suffix if needed.
But the rule generates false positive on my struct.
I'm using CppCheck 2.3 on Windows 10.
I have attached small code.
The command is:
"c:\Program Files\Cppcheck\cppcheck.exe" --enable=all --inline-suppr --suppress=unusedFunction --suppress=missingInclude --addon=misra.json misra_7_3.c
The result is :
Note: I have not attached the "misra-rules.txt" file due to licence terms.
It's clear that it's a false positive.
Thank you! The following PR should fix this: https://github.com/danmar/cppcheck/pull/3236 .
Thank you for your answer Georgiy !