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 f5c1ca3 commit 0336f89Copy full SHA for 0336f89
scripts/coccinelle/api/string_choices.cocci
@@ -62,3 +62,26 @@ e << str_up_down_r.E;
62
@@
63
64
coccilib.report.print_report(p[0], "opportunity for str_up_down(%s)" % e)
65
+
66
+@str_down_up depends on patch@
67
+expression E;
68
+@@
69
+(
70
+- ((E) ? "down" : "up")
71
++ str_down_up(E)
72
+)
73
74
+@str_down_up_r depends on !patch exists@
75
76
+position P;
77
78
79
+* ((E@P) ? "down" : "up")
80
81
82
+@script:python depends on report@
83
+p << str_down_up_r.P;
84
+e << str_down_up_r.E;
85
86
87
+coccilib.report.print_report(p[0], "opportunity for str_down_up(%s)" % e)
0 commit comments