mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
18 lines
332 B
Plaintext
18 lines
332 B
Plaintext
/**
|
|
* @id cpp/examples/castexpr
|
|
* @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
|