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