Skip to content

Commit e20fef7

Browse files
committed
Update comments for clarity on compliance status
1 parent b05dbd3 commit e20fef7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎c/misra/test/rules/RULE-8-18/sample.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ static int static_object; // NON_COMPLIANT
66
const int const_object; // NON_COMPLIANT
77

88
// An initializer applies only to its own declarator.
9-
int initialized = 1, uninitialized; // NON_COMPLIANT: uninitialized
9+
int initialized = 1, uninitialized; // NON_COMPLIANT - uninitialized
1010

1111
// Later definitions do not excuse earlier tentative declarations.
12-
int initialized_elsewhere; // NON_COMPLIANT: initialized in test.c
12+
int initialized_elsewhere; // NON_COMPLIANT - initialized in test.c
1313
int same_header_object; // NON_COMPLIANT
1414
int same_header_object = 1; // COMPLIANT
1515

@@ -25,4 +25,4 @@ DECLARE_OBJECT(macro_header_object); // NON_COMPLIANT
2525
int cross_tu_object; // NON_COMPLIANT
2626

2727
#define DEFINE_INITIALIZED_OBJECT(name) int name = 0
28-
DEFINE_INITIALIZED_OBJECT(macro_initialized_object); // COMPLIANT
28+
DEFINE_INITIALIZED_OBJECT(macro_initialized_object); // COMPLIANT

0 commit comments

Comments
 (0)