We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7aca15e commit 9c72ee1Copy full SHA for 9c72ee1
.ci/linters/c/alloc_linter.R
@@ -6,7 +6,7 @@ alloc_linter = function(c_obj) {
6
lines = c_obj$lines
7
# Be a bit more precise to avoid mentions in comments, and allow
8
# malloc(0) to be used for convenience (e.g. #6757)
9
- alloc_lines = grep(R"{=\s*([(]\w+\s*[*][)])?\s*[mc]alloc[(][^0]}", lines)
+ alloc_lines = grep(R"{=\s*([(]\s*\w+\s*[*]\s*[)])?\s*[mc]alloc[(][^0]}", lines)
10
if (!length(alloc_lines)) return()
11
# int *tmp=(int*)malloc(...); or just int tmp=malloc(...);
12
alloc_keys = lines[alloc_lines] |>
0 commit comments