lib/igt.cocci: Add stanza for for_each_pipe

Damien dodged this ...

Also run the script while at it.

v2: Don't just capture identifiers for pipe, but also expressions.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter
2014-07-11 17:41:27 +02:00
parent 7bf0f7fc58
commit 8bf115ed99
4 changed files with 13 additions and 3 deletions
+10
View File
@@ -74,3 +74,13 @@ expression list[n] Ep;
@@
-abort();
+igt_fail(1);
@@
iterator name for_each_pipe;
igt_display_t *display;
expression pipe;
@@
- for (pipe = 0; pipe < igt_display_get_n_pipes(display); pipe++) {
+ for_each_pipe (display, pipe) {
...
}