Lines Matching refs:patch
48 Four basic modes are defined: patch, report, context, and org. The mode to
51 'patch' proposes a fix, when possible.
73 To make a report for every semantic patch, run the following command:
79 make coccicheck MODE=patch
82 The coccicheck target applies every semantic patch available in the
85 For each semantic patch, a commit message is proposed. It gives a
86 description of the problem being checked by the semantic patch, and
103 Using Coccinelle with a single semantic patch
107 semantic patch. In that case, the variable must be initialized with
108 the name of the semantic patch to apply.
112 make coccicheck COCCI=<my_SP.cocci> MODE=patch
138 This runs every semantic patch in scripts/coccinelle by default. The
140 semantic patch as shown in the previous section.
185 @r depends on !context && !patch && (org || report)@
209 Detailed description of the 'patch' mode
212 When the 'patch' mode is available, it proposes a fix for each problem
218 make coccicheck MODE=patch COCCI=scripts/coccinelle/api/err_cast.cocci
223 @ depends on !context && patch && !org && !report @
231 This SmPL excerpt generates patch hunks on the standard output, as
253 NOTE: The diff-like output generated is NOT an applicable patch. The
267 @ depends on context && !patch && !org && !report@
302 @r depends on !context && !patch && (org || report)@