aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/coccinelle.txt
diff options
context:
space:
mode:
authorNicolas Palix <nicolas.palix@imag.fr>2013-03-02 16:36:27 -0500
committerMichal Marek <mmarek@suse.cz>2013-04-08 09:42:03 -0400
commited621cc4a5f6fd41cf02b2408273474d46ac4cac (patch)
treec8f8d5ecf7bb1446435a90f55f48dc050b68f232 /Documentation/coccinelle.txt
parent9e395550779efa07ee00809a041534b9641fb7a7 (diff)
Coccinelle: Add support to the SPFLAGS variable
The SPFLAGS variable allows to pass additional options to spatch, e.g. -use_glimpse. Signed-off-by: Nicolas Palix <nicolas.palix@imag.fr> Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'Documentation/coccinelle.txt')
-rw-r--r--Documentation/coccinelle.txt11
1 files changed, 10 insertions, 1 deletions
diff --git a/Documentation/coccinelle.txt b/Documentation/coccinelle.txt
index dffa2d620d6d..18de78599dd4 100644
--- a/Documentation/coccinelle.txt
+++ b/Documentation/coccinelle.txt
@@ -114,7 +114,7 @@ To apply Coccinelle to a specific directory, M= can be used.
114For example, to check drivers/net/wireless/ one may write: 114For example, to check drivers/net/wireless/ one may write:
115 115
116 make coccicheck M=drivers/net/wireless/ 116 make coccicheck M=drivers/net/wireless/
117 117
118To apply Coccinelle on a file basis, instead of a directory basis, the 118To apply Coccinelle on a file basis, instead of a directory basis, the
119following command may be used: 119following command may be used:
120 120
@@ -134,6 +134,15 @@ MODE variable explained above.
134In this mode, there is no information about semantic patches 134In this mode, there is no information about semantic patches
135displayed, and no commit message proposed. 135displayed, and no commit message proposed.
136 136
137 Additional flags
138~~~~~~~~~~~~~~~~~~
139
140Additional flags can be passed to spatch through the SPFLAGS
141variable.
142
143 make SPFLAGS=--use_glimpse coccicheck
144
145See spatch --help to learn more about spatch options.
137 146
138 Proposing new semantic patches 147 Proposing new semantic patches
139~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 148~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~