diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2016-01-30 17:13:54 +0100 |
---|---|---|
committer | Michal Marek <mmarek@suse.com> | 2016-02-18 22:06:28 +0100 |
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; // For org and report mode //---------------------------------------------------------- -@r@ +@r depends on (org || report)@ type T; T[] E; position p; |