1// Copyright: (C) 2019 Intel Corporation
2// SPDX-License-Identifier: Apache-2.0
3
4virtual report
5
6@r_idlen@
7type T;
8identifier I;
9constant C;
10position p;
11@@
12
13(
14  T I@p (...);
15|
16  I@p (...)
17|
18  T I@p = C;
19|
20  T I@p;
21)
22
23@script:python depends on report@
24id << r_idlen.I;
25pos << r_idlen.p;
26@@
27
28if (len(id) > 31):
29   msg="WARNING: Violation to rule 5.1 or 5.2 (Identifiers shall be distinct) %s length %d > 31" % (id, len(id))
30   coccilib.report.print_report(pos[0], msg)
31