Type declaration on the next line is not allowed in rule 8.2. But we need to make sure that the files of the checked files are the same. Reported on the forum: https://sourceforge.net/p/cppcheck/discussion/development/thread/801dc07e59/#32c3/e90b/293e/39df/85b3/b821/e0c3
8 lines
176 B
C
8 lines
176 B
C
#ifndef MISRA_TEST_H
|
|
#define MISRA_TEST_H
|
|
struct misra_h_s { int foo; };
|
|
bool test(char *); // 8.2
|
|
bool test(char *a); // OK
|
|
int misra_8_2_no_fp(int a);
|
|
#endif // MISRA_TEST_H
|