]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
Coccinelle: array_size: reduce rule applicability
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sat, 30 Jan 2016 16:13:54 +0000 (17:13 +0100)
committerMichal Marek <mmarek@suse.com>
Thu, 18 Feb 2016 21:06:28 +0000 (22:06 +0100)
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>
scripts/coccinelle/misc/array_size.cocci

index 81e279cd347b117e04258f330c99bbe590813bd9..6ec05710b0179463101feddc99498196f740255a 100644 (file)
@@ -59,7 +59,7 @@ T[] E;
 //  For org and report mode
 //----------------------------------------------------------
 
-@r@
+@r depends on (org || report)@
 type T;
 T[] E;
 position p;