diff options
| author | Julia Lawall <Julia.Lawall@lip6.fr> | 2016-01-30 11:13:54 -0500 |
|---|---|---|
| committer | Michal Marek <mmarek@suse.com> | 2016-02-18 16:06:28 -0500 |
| commit | c7eaa8873b3e50667e0b6529141139147f34748e (patch) | |
| tree | 6ec81a098efd0fdbd3aad6695abec219e977c975 /scripts/coccinelle/misc | |
| parent | 8f551befa2269dc244bcfbcad795132f833cb71c (diff) | |
Coccinelle: array_size: reduce rule applicability
Rule r is only use in org or report mode, so only execute it in those
cases.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Michal Marek <mmarek@suse.com>
Diffstat (limited to 'scripts/coccinelle/misc')
| -rw-r--r-- | scripts/coccinelle/misc/array_size.cocci | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/coccinelle/misc/array_size.cocci b/scripts/coccinelle/misc/array_size.cocci index 81e279cd347b..6ec05710b017 100644 --- a/scripts/coccinelle/misc/array_size.cocci +++ b/scripts/coccinelle/misc/array_size.cocci | |||
| @@ -59,7 +59,7 @@ T[] E; | |||
| 59 | // For org and report mode | 59 | // For org and report mode |
| 60 | //---------------------------------------------------------- | 60 | //---------------------------------------------------------- |
| 61 | 61 | ||
| 62 | @r@ | 62 | @r depends on (org || report)@ |
| 63 | type T; | 63 | type T; |
| 64 | T[] E; | 64 | T[] E; |
| 65 | position p; | 65 | position p; |
