Skip to content

Commit 88a0e60

Browse files
committed
CPP: Un-autoformat to ease merge.
1 parent 1203c73 commit 88a0e60

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

cpp/ql/src/Critical/LargeParameter.ql

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,15 @@
1010
* statistical
1111
* non-attributable
1212
*/
13-
1413
import cpp
1514

1615
from Function f, Parameter p, Type t, int size
17-
where
18-
f.getAParameter() = p and
19-
p.getType() = t and
20-
t.getSize() = size and
21-
size > 64 and
22-
not t.getUnderlyingType() instanceof ArrayType and
23-
not f instanceof CopyAssignmentOperator
24-
select p,
25-
"This parameter of type $@ is " + size.toString() +
26-
" bytes - consider passing a const pointer/reference instead.", t, t.toString()
16+
where f.getAParameter() = p
17+
and p.getType() = t
18+
and t.getSize() = size
19+
and size > 64
20+
and not t.getUnderlyingType() instanceof ArrayType
21+
and not f instanceof CopyAssignmentOperator
22+
select
23+
p, "This parameter of type $@ is " + size.toString() + " bytes - consider passing a const pointer/reference instead.",
24+
t, t.toString()

0 commit comments

Comments
 (0)