tools: Coccinelle script to convert 0/1 to false/true if variable type is bool

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
This commit is contained in:
Donatas Abraitis 2020-03-04 18:47:09 +02:00
parent 286bbbecb0
commit a5f6e69b14

View File

@ -0,0 +1,13 @@
@@
bool b;
@@
(
b =
- 0
+ false
|
b =
- 1
+ true
)