Commit cfa947f
* Use _RO accessors for const targets
* use read-only accessors when appropriate (#7615)
* one more _RO
Co-authored-by: Benjamin Schwendinger <52290390+ben-schwen@users.noreply.github.com>
* review suggestions
Co-authored-by: Benjamin Schwendinger <52290390+ben-schwen@users.noreply.github.com>
* botched suggested change
* Use more read-only accessors
* gfirstlast: use _RO accessors
Keep the casts because they are currently necessary for the integer64 case.
* add coccinelle rules to use read only accessors
* CI should also run when cocci files are touched
* cocci_linter.R: fix zero-length error reports
* use_ro_accessors.cocci: expand linter rules
* Apply suggestions from code review
Co-authored-by: Michael Chirico <chiricom@google.com>
* Revert "cocci_linter.R: fix zero-length error reports"
This reverts commit 70d37da.
* Fix the file path list element
Setting $c_obj instead of $path caused the error messages to be
zero-length due to the latter being returned as NULL.
Co-Authored-By: Michael Chirico <chiricom@google.com>
Co-Authored-By: Benjamin Schwendinger <52290390+ben-schwen@users.noreply.github.com>
* Reorder checks according to SEXPTYPE order
---------
Co-authored-by: Michael Chirico <chiricom@google.com>
Co-authored-by: Benjamin Schwendinger <52290390+ben-schwen@users.noreply.github.com>
Co-authored-by: Benjamin Schwendinger <benjaminschwe@gmail.com>
1 parent 293f3b0 commit cfa947f
3 files changed
Lines changed: 81 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
0 commit comments