Skip to content

CodeQL: Update test results after array specifier bug fix in the extractor #885

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 10, 2025
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