summaryrefslogtreecommitdiffstats
path: root/tools/coccinelle/bool_function.cocci
blob: 0328ecfbbea71c844cbfa95d2266e366a5793ad6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@@
identifier fn;
typedef bool;
symbol false;
symbol true;
@@

bool fn ( ... )
{
<...
return
(
- 0
+ false
|
- 1
+ true
)
  ;
...>
}