Lines Matching +full:- +full:p1
1 // SPDX-License-Identifier: GPL-2.0-only
5 // Copyright: (C) 2010-2012 Nicolas Palix.
6 // Copyright: (C) 2010-2012 Julia Lawall, INRIA/LIP6.
7 // Copyright: (C) 2010-2012 Gilles Muller, INRIA/LiP6.
10 // Options: --no-includes --include-headers
23 - to = kmalloc(strlen(from) + 1,flag);
28 - strcpy(to, from);
36 - x = strlen(from) + 1;
38 - to = \(kmalloc\|kzalloc\)(x,flag);
43 - memcpy(to, from, x);
45 // ---------------------------------------------------------------------
51 position p1,p2;
54 * to = kmalloc@p1(strlen(from) + 1,flag);
64 position p1,p2;
69 * to = \(kmalloc@p1\|kzalloc@p1\)(x,flag);
76 p1 << r1.p1;
80 cocci.print_main("WARNING opportunity for kstrdup",p1)
84 p1 << r2.p1;
88 cocci.print_main("WARNING opportunity for kstrdup",p1)
92 p1 << r1.p1;
97 coccilib.report.print_report(p1[0], msg)
100 p1 << r2.p1;
105 coccilib.report.print_report(p1[0], msg)