1 /// Remove unneeded conversion to bool
3 //# Relational and logical operators evaluate to bool,
4 //# explicit conversion is overly verbose and unneeded.
13 //----------------------------------------------------------
15 //----------------------------------------------------------
41 //----------------------------------------------------------
43 //----------------------------------------------------------
70 //----------------------------------------------------------
72 //----------------------------------------------------------
74 @script:python depends on r&&org@
78 msg = "WARNING: conversion to bool not needed here"
79 coccilib.org.print_todo(p[0], msg)
81 //----------------------------------------------------------
83 //----------------------------------------------------------
85 @script:python depends on r&&report@
89 msg = "WARNING: conversion to bool not needed here"
90 coccilib.report.print_report(p[0], msg)