misra; fixed test

This commit is contained in:
Daniel Marjamäki 2021-09-17 08:08:18 +02:00
parent b938ee69d0
commit c296115cd3
2 changed files with 6 additions and 4 deletions

View File

@ -3,7 +3,7 @@
#include "misra-ctu-test.h" #include "misra-ctu-test.h"
MISRA_2_3_A misra_2_3_a; extern MISRA_2_3_A misra_2_3_a;
x = MISRA_2_5_OK_1; x = MISRA_2_5_OK_1;
@ -17,8 +17,10 @@ struct misra_5_7_violation_t {
}; };
static misra_5_7_violation_t misra_5_7_use_type_1; static misra_5_7_violation_t misra_5_7_use_type_1;
// cppcheck-suppress misra-c2012-8.4
// cppcheck-suppress misra-c2012-5.8 // cppcheck-suppress misra-c2012-5.8
int misra_5_8_var1; int misra_5_8_var1;
// cppcheck-suppress misra-c2012-8.4
// cppcheck-suppress misra-c2012-5.8 // cppcheck-suppress misra-c2012-5.8
int misra_5_8_var2; int misra_5_8_var2;
// cppcheck-suppress misra-c2012-5.8 // cppcheck-suppress misra-c2012-5.8
@ -30,10 +32,10 @@ static int misra_5_9_count;
// cppcheck-suppress misra-c2012-5.9 // cppcheck-suppress misra-c2012-5.9
static void misra_5_8_foo(void) {} static void misra_5_8_foo(void) {}
// cppcheck-suppress misra-c2012-8.4
// cppcheck-suppress misra-c2012-8.5 // cppcheck-suppress misra-c2012-8.5
extern int misra_8_5; extern int misra_8_5;
// cppcheck-suppress misra-c2012-8.4
// cppcheck-suppress misra-c2012-8.6 // cppcheck-suppress misra-c2012-8.6
int32_t misra_8_6 = 1; int32_t misra_8_6 = 1;

View File

@ -3,7 +3,7 @@
#include "misra-ctu-test.h" #include "misra-ctu-test.h"
MISRA_2_3_B misra_2_3_b; extern MISRA_2_3_B misra_2_3_b;
x = MISRA_2_5_OK_2; x = MISRA_2_5_OK_2;
@ -31,10 +31,10 @@ static int misra_5_9_count;
// cppcheck-suppress misra-c2012-5.9 // cppcheck-suppress misra-c2012-5.9
static void misra_5_8_foo(void) {} static void misra_5_8_foo(void) {}
// cppcheck-suppress misra-c2012-8.4
// cppcheck-suppress misra-c2012-8.5 // cppcheck-suppress misra-c2012-8.5
extern int misra_8_5; extern int misra_8_5;
// cppcheck-suppress misra-c2012-8.4
// cppcheck-suppress misra-c2012-8.6 // cppcheck-suppress misra-c2012-8.6
int32_t misra_8_6 = 2; int32_t misra_8_6 = 2;