File: iterators.cocci

package info (click to toggle)
intel-gpu-tools 2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 64,504 kB
  • sloc: xml: 781,458; ansic: 378,272; python: 8,407; yacc: 2,781; perl: 1,196; sh: 1,177; lex: 487; asm: 227; lisp: 35; makefile: 30
file content (25 lines) | stat: -rw-r--r-- 709 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// SPDX-License-Identifier: MIT
//
// Use with
// #include "scripts/iterators.cocci"
// at the start of your cocci script
//
// Note that cocci has a builtin heuristic:
// ".*\\(for_?each\\|for_?all\\|iterate\\|loop\\|walk\\|scan\\|each\\|for\\)"
// Iterators matching that don't need to be declared explicitly.

@@
iterator name igt_dynamic;
iterator name igt_dynamic_f;
iterator name igt_fixture;
iterator name igt_fork;
iterator name igt_require;
iterator name igt_subtest;
iterator name igt_subtest_f;
iterator name igt_subtest_group;
iterator name igt_subtest_with_dynamic;
iterator name igt_subtest_with_dynamic_f;
iterator name igt_until_timeout;
iterator name igt_while_interruptible;
@@
struct dummy