File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed
Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change 1010 * statistical
1111 * non-attributable
1212 */
13-
1413import cpp
1514
1615from 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 ( )
You can’t perform that action at this time.
0 commit comments