From b8d2b95e8f1c7fc429b304b64e7d0796624f31e1 Mon Sep 17 00:00:00 2001 From: Jeongsoo Lee Date: Thu, 2 Feb 2023 18:09:20 -0800 Subject: [PATCH] s/COMPILANT/COMPLIANT/ --- c/misra/test/rules/RULE-6-1/test.c | 8 ++++---- c/misra/test/rules/RULE-6-2/test.c | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/c/misra/test/rules/RULE-6-1/test.c b/c/misra/test/rules/RULE-6-1/test.c index 0271ed1e32..be9d2a13ca 100644 --- a/c/misra/test/rules/RULE-6-1/test.c +++ b/c/misra/test/rules/RULE-6-1/test.c @@ -4,12 +4,12 @@ enum Color { R, G, B }; struct SampleStruct { int x1 : 2; // NON_COMPLIANT - not explicitly signed or unsigned - unsigned int x2 : 2; // COMPILANT - explicitly unsigned - signed int x3 : 2; // COMPILANT - explicitly signed + unsigned int x2 : 2; // COMPLIANT - explicitly unsigned + signed int x3 : 2; // COMPLIANT - explicitly signed UINT16 x4 : 2; // COMPLIANT - type alias resolves to a compliant type signed long x5 : 2; // NON_COMPLIANT - cannot declare bit field for long, even // if it's signed - signed char x6 : 2; // NON_COMPILANT - cannot declare bit field for char, even + signed char x6 : 2; // NON_COMPLIANT - cannot declare bit field for char, even // if it's signed - enum Color x7 : 3; // NON_COMPILANT - cannot declare bit field for enum + enum Color x7 : 3; // NON_COMPLIANT - cannot declare bit field for enum } sample_struct; diff --git a/c/misra/test/rules/RULE-6-2/test.c b/c/misra/test/rules/RULE-6-2/test.c index b3eaa0dd0e..8182dfdb5d 100644 --- a/c/misra/test/rules/RULE-6-2/test.c +++ b/c/misra/test/rules/RULE-6-2/test.c @@ -1,17 +1,17 @@ #include struct SampleStruct { - int x1 : 1; // NON_COMPILANT: very likely be signed, but if it's not, the + int x1 : 1; // NON_COMPLIANT: very likely be signed, but if it's not, the // query will automatically handle it since we use signed(), not // isExplicitlySigned(). - signed int x2 : 1; // NON_COMPILANT: single-bit named field with a signed type + signed int x2 : 1; // NON_COMPLIANT: single-bit named field with a signed type signed char - x3 : 1; // NON_COMPILANT: single-bit named field with a signed type + x3 : 1; // NON_COMPLIANT: single-bit named field with a signed type signed short - x4 : 1; // NON_COMPILANT: single-bit named field with a signed type + x4 : 1; // NON_COMPLIANT: single-bit named field with a signed type unsigned int - x5 : 1; // COMPILANT: single-bit named field but with an unsigned type - signed int x6 : 2; // COMPILANT: named field with a signed type but declared + x5 : 1; // COMPLIANT: single-bit named field but with an unsigned type + signed int x6 : 2; // COMPLIANT: named field with a signed type but declared // to carry more than 1 bit - signed char : 1; // COMPILANT: single-bit bit-field but unnamed + signed char : 1; // COMPLIANT: single-bit bit-field but unnamed } sample_struct;