From c18d919d23104ffdf47938ee56517e7273cb6175 Mon Sep 17 00:00:00 2001 From: Nicolas Palix Date: Sat, 2 Mar 2013 22:36:27 +0100 Subject: [PATCH] --- yaml --- r: 373711 b: refs/heads/master c: ed621cc4a5f6fd41cf02b2408273474d46ac4cac h: refs/heads/master i: 373709: bd41386d1908494867f59b33d77ffdc571b606b5 373707: f9ade13d14aa7cbe584a44d5a3a198525073f25d 373703: ce40ccddb1c9edb9dbcba5db2e18a4cd0d94a0de 373695: a250d99bde4fab95bb01f0d084cf4a29ada24406 v: v3 --- [refs] | 2 +- trunk/Documentation/coccinelle.txt | 11 ++++++++++- trunk/scripts/coccicheck | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 50def9537af9..87f0b98433f4 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9e395550779efa07ee00809a041534b9641fb7a7 +refs/heads/master: ed621cc4a5f6fd41cf02b2408273474d46ac4cac diff --git a/trunk/Documentation/coccinelle.txt b/trunk/Documentation/coccinelle.txt index dffa2d620d6d..18de78599dd4 100644 --- a/trunk/Documentation/coccinelle.txt +++ b/trunk/Documentation/coccinelle.txt @@ -114,7 +114,7 @@ To apply Coccinelle to a specific directory, M= can be used. For example, to check drivers/net/wireless/ one may write: make coccicheck M=drivers/net/wireless/ - + To apply Coccinelle on a file basis, instead of a directory basis, the following command may be used: @@ -134,6 +134,15 @@ MODE variable explained above. In this mode, there is no information about semantic patches displayed, and no commit message proposed. + Additional flags +~~~~~~~~~~~~~~~~~~ + +Additional flags can be passed to spatch through the SPFLAGS +variable. + + make SPFLAGS=--use_glimpse coccicheck + +See spatch --help to learn more about spatch options. Proposing new semantic patches ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/trunk/scripts/coccicheck b/trunk/scripts/coccicheck index cdde8e0670aa..6d492c096ade 100755 --- a/trunk/scripts/coccicheck +++ b/trunk/scripts/coccicheck @@ -11,7 +11,7 @@ else VERBOSE=0 fi -FLAGS="-very_quiet" +FLAGS="$SPFLAGS -very_quiet" # spatch only allows include directories with the syntax "-I include" # while gcc also allows "-Iinclude" and "-include include"