]> git.proxmox.com Git - mirror_frr.git/blob - tools/coccinelle/bool_expression.cocci
c0c329cb59c9e3244ee4436f4d4374170b5f05ec
[mirror_frr.git] / tools / coccinelle / bool_expression.cocci
1 @@
2 bool t;
3 @@
4
5 (
6 - t == true
7 + t
8 |
9 - true == t
10 + t
11 |
12 - t != true
13 + !t
14 |
15 - true != t
16 + !t
17 |
18 - t == false
19 + !t
20 |
21 - false == t
22 + !t
23 |
24 - t != false
25 + t
26 |
27 - false != t
28 + t
29 )