Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion c/misra/test/rules/RULE-17-6/UseOfArrayStatic.expected
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
| test.c:2:33:2:36 | arr2 | Parameter arr2 is declared as an array type using the static keyword. |
| test.c:3:39:3:42 | arr3 | Parameter arr3 is declared as an array type using the static keyword. |
| test.c:5:9:5:12 | arr4 | Parameter arr4 is declared as an array type using the static keyword. |
6 changes: 1 addition & 5 deletions c/misra/test/rules/RULE-17-6/test.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
void test_array(int arr1[10]) {} // COMPLIANT
void test_array_uses_static(int arr2[static 11]) {} // NON_COMPLIANT
void test_array_uses_static_multi(int arr3[static 12][5]) {} // NON_COMPLIANT
void test_array_uses_static_again(
int arr4[11]) { // COMPLIANT[FALSE_POSITIVE] - apparently a CodeQL
// bug where the static is associated with the fixed
// size
}
void test_array_uses_static_again(int arr4[11]) {} // COMPLIANT
Loading