Skip to content
Snippets Groups Projects
Commit fda2326c authored by Junio C Hamano's avatar Junio C Hamano
Browse files

Merge branch 'rs/cocci-strbuf-addf-to-addstr' into maint

* rs/cocci-strbuf-addf-to-addstr:
  cocci: simplify check for trivial format strings
parents e55521be ae239fc8
No related branches found
No related tags found
No related merge requests found
@ strbuf_addf_with_format_only @
expression E;
constant fmt;
@@
strbuf_addf(E,
(
fmt
|
_(fmt)
)
);
@ script:python @
fmt << strbuf_addf_with_format_only.fmt;
@@
cocci.include_match("%" not in fmt)
@ extends strbuf_addf_with_format_only @
constant fmt !~ "%";
@@
- strbuf_addf
+ strbuf_addstr
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment