Merge branch 'es/make-no-iconv'
[git.git] / contrib / coccinelle / strbuf.cocci
blobe34eada1ad52933230c7fcace595677747f9e1d6
1 @ strbuf_addf_with_format_only @
2 expression E;
3 constant fmt !~ "%";
4 @@
5 - strbuf_addf
6 + strbuf_addstr
7   (E,
9   fmt
11   _(fmt)
13   );
16 expression E1, E2;
17 format F =~ "s";
19 - strbuf_addf(E1, "%@F@", E2);
20 + strbuf_addstr(E1, E2);
23 expression E1, E2, E3;
25 - strbuf_addstr(E1, find_unique_abbrev(E2, E3));
26 + strbuf_add_unique_abbrev(E1, E2, E3);
29 expression E1, E2;
31 - strbuf_addstr(E1, real_path(E2));
32 + strbuf_add_real_path(E1, E2);