| // SPDX-License-Identifier: GPL-2.0-only |
| /// Check for constants that are added but are used elsewhere as bitmasks |
| /// The results should be checked manually to ensure that the nonzero |
| /// bits in the two constants are actually disjoint. |
| // Copyright: (C) 2013 Julia Lawall, INRIA/LIP6. |
| // Copyright: (C) 2013 Gilles Muller, INRIA/LIP6. |
| // URL: http://coccinelle.lip6.fr/ |
| // Options: --no-includes --include-headers |
| @script:python depends on s && org@ |
| cocci.print_main("sum of probable bitmasks, consider |",p) |
| @script:python depends on s && report@ |
| msg = "WARNING: sum of probable bitmasks, consider |" |
| coccilib.report.print_report(p[0],msg) |