CPP: Un-autoformat to ease merge.

This commit is contained in:
Geoffrey White
2019-05-01 13:16:46 +01:00
parent 1203c7305a
commit 88a0e60a2a

View File

@@ -10,17 +10,15 @@
* statistical
* non-attributable
*/
import cpp
from Function f, Parameter p, Type t, int size
where
f.getAParameter() = p and
p.getType() = t and
t.getSize() = size and
size > 64 and
not t.getUnderlyingType() instanceof ArrayType and
not f instanceof CopyAssignmentOperator
select p,
"This parameter of type $@ is " + size.toString() +
" bytes - consider passing a const pointer/reference instead.", t, t.toString()
where f.getAParameter() = p
and p.getType() = t
and t.getSize() = size
and size > 64
and not t.getUnderlyingType() instanceof ArrayType
and not f instanceof CopyAssignmentOperator
select
p, "This parameter of type $@ is " + size.toString() + " bytes - consider passing a const pointer/reference instead.",
t, t.toString()