diff options
Diffstat (limited to 'tools/coccinelle/bool_function_type.cocci')
-rw-r--r-- | tools/coccinelle/bool_function_type.cocci | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/coccinelle/bool_function_type.cocci b/tools/coccinelle/bool_function_type.cocci new file mode 100644 index 0000000..71bf4f5 --- /dev/null +++ b/tools/coccinelle/bool_function_type.cocci @@ -0,0 +1,19 @@ +@@ +identifier fn; +typedef bool; +symbol false; +symbol true; +@@ + +- int ++ bool +fn (...) +{ +?... +return +( + true +| + false +); +} |