mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
15 lines
265 B
Plaintext
15 lines
265 B
Plaintext
/**
|
|
* @name Integer literal
|
|
* @description Finds places where we use the integer literal `2`
|
|
* @tags integer
|
|
* literal
|
|
*/
|
|
|
|
import cpp
|
|
|
|
from Literal literal
|
|
where
|
|
literal.getType() instanceof IntType and
|
|
literal.getValue().toInt() = 2
|
|
select literal
|