summaryrefslogtreecommitdiffstats
path: root/qa/coccinelle/uint.cocci
blob: d7e6af773cbacee5d8e07502a246a43c33e75f73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
@uint@
uint i;
position p1;
@@

i@p1

@script:python@
p1 << uint.p1;
@@
print("banned type uint used at at %s:%s, please use a explicit length." % (p1[0].file, p1[0].line))
import sys
sys.exit(1)