cppcheck/addons/test/misra/misra-ctu-test.h

22 lines
406 B
C
Raw Normal View History

2021-07-07 10:58:13 +02:00
2021-07-07 15:16:53 +02:00
typedef int MISRA_2_3_A;
typedef int MISRA_2_3_B;
typedef int MISRA_2_3_VIOLATION; // cppcheck-suppress misra-c2012-2.3
2021-07-07 20:30:52 +02:00
// cppcheck-suppress misra-c2012-2.4
struct misra_2_4_violation_t {
int x;
};
2021-07-07 10:58:13 +02:00
static inline void misra_5_9_exception(void) {}
void misra_8_7_external(void);
2021-07-08 22:03:27 +02:00
#define MISRA_2_5_OK_1 1
#define MISRA_2_5_OK_2 2
// cppcheck-suppress misra-c2012-2.5
#define MISRA_2_5_VIOLATION 0