cppcheck/addons/test/misra/misra-test.h
Georgiy Komarov 7a009fece0
misra: Add support for expected suppressions in header files in -verify mode (#3252)
This commit allows to specify expected suppressions in the included
header files. This is necessary to verify MISRA checkers, which make
requirements for header files. For example, Rule 8.2 requires adding
prototypes for each function to the header files.
2021-05-08 10:27:31 +02:00

7 lines
148 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
#endif // MISRA_TEST_H