1 // SPDX-License-Identifier: GPL-2.0
2 /// Return statements in functions returning bool should use
3 /// true/false instead of 1/0.
6 // Options: --no-includes --include-headers
34 @r2 depends on report || context@
53 @script:python depends on report@
58 msg = "WARNING: return of 0/1 in function '%s' with return type bool" % fn
59 coccilib.report.print_report(p[0], msg)