Files
codeql/cpp/ql/examples/castexpr.ql
2019-07-26 17:47:11 +02:00

16 lines
301 B
Plaintext

/**
* @name Cast expressions
* @description Finds casts from a floating point type to an integer type
* @tags cast
* integer
* float
* type
*/
import cpp
from Cast c
where c.getExpr().getType() instanceof FloatingPointType
and c.getType() instanceof IntegralType
select c