We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 090dbea + ae239fc commit ab66fc2Copy full SHA for ab66fc2
1 file changed
contrib/coccinelle/strbuf.cocci
@@ -1,21 +1,6 @@
1
@ strbuf_addf_with_format_only @
2
expression E;
3
-constant fmt;
4
-@@
5
- strbuf_addf(E,
6
-(
7
- fmt
8
-|
9
- _(fmt)
10
-)
11
- );
12
-
13
-@ script:python @
14
-fmt << strbuf_addf_with_format_only.fmt;
15
16
-cocci.include_match("%" not in fmt)
17
18
-@ extends strbuf_addf_with_format_only @
+constant fmt !~ "%";
19
@@
20
- strbuf_addf
21
+ strbuf_addstr
0 commit comments