We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a98ae7f commit 9b97452Copy full SHA for 9b97452
scripts/coccinelle/api/string_choices.cocci
@@ -39,3 +39,26 @@ e << str_plural_r.E;
39
@@
40
41
coccilib.report.print_report(p[0], "opportunity for str_plural(%s)" % e)
42
+
43
+@str_up_down depends on patch@
44
+expression E;
45
+@@
46
+(
47
+- ((E) ? "up" : "down")
48
++ str_up_down(E)
49
+)
50
51
+@str_up_down_r depends on !patch exists@
52
53
+position P;
54
55
56
+* ((E@P) ? "up" : "down")
57
58
59
+@script:python depends on report@
60
+p << str_up_down_r.P;
61
+e << str_up_down_r.E;
62
63
64
+coccilib.report.print_report(p[0], "opportunity for str_up_down(%s)" % e)
0 commit comments