summaryrefslogtreecommitdiffstats
path: root/tools/coccinelle/bool_assignment.cocci
blob: e6146ea3108c12820ea24187a994ca46eb1dc1b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
@@
bool b;
@@

(
 b =
- 0
+ false
|
 b =
- 1
+ true
)