Coccinelle Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Cocci] [PATCH] coccinelle: bugon: reduce rule applicability
@ 2016-02-03 18:05 Julia Lawall
  2016-02-18 21:10 ` Michal Marek
  0 siblings, 1 reply; 2+ messages in thread
From: Julia Lawall @ 2016-02-03 18:05 UTC (permalink / raw)
  To: cocci

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>

---
 scripts/coccinelle/misc/bugon.cocci |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/coccinelle/misc/bugon.cocci b/scripts/coccinelle/misc/bugon.cocci
index 27c97f1..7415860 100644
--- a/scripts/coccinelle/misc/bugon.cocci
+++ b/scripts/coccinelle/misc/bugon.cocci
@@ -40,7 +40,7 @@ expression e;
 //  For org and report mode
 //----------------------------------------------------------
 
- at r@
+ at r depends on (org || report)@
 expression e;
 position p;
 @@

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-02-18 21:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-03 18:05 [Cocci] [PATCH] coccinelle: bugon: reduce rule applicability Julia Lawall
2016-02-18 21:10 ` Michal Marek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox