Commit 59b8b36
authored
Fix Coccinelle allocation cast linter (#7039)
* Fix malloc/calloc/realloc cast linter
Tested by manually calling spatch on an older version of data.table
* Coccinelle linter: look at preprocessed source
Otherwise major sources of potential problems fail to parse altogether
and get skipped. Make sure to report non-zero exit codes in addition to
non-empty diffs. Don't suggest applying the diffs; that won't work on
preprocessed source.1 parent 8454965 commit 59b8b36
File tree
2 files changed
+20
-15
lines changed- .ci/linters
- cocci
- c
2 files changed
+20
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | | - | |
5 | | - | |
| 7 | + | |
6 | 8 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 9 | + | |
11 | 10 | | |
12 | | - | |
| 11 | + | |
13 | 12 | | |
14 | | - | |
| 13 | + | |
15 | 14 | | |
16 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | | - | |
| 22 | + | |
20 | 23 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
8 | 13 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 14 | + | |
0 commit comments