Files
codeql/python/ql/examples/snippets/builtin_object.ql
2025-10-30 13:58:59 +00:00

16 lines
378 B
Plaintext

/**
* @id py/examples/builtin-object
* @name Builtin objects
* @description Finds expressions that refer to an object in the builtins module (like int or None).
* @tags reference
* builtin
* object
*/
import python
private import LegacyPointsTo
from ExprWithPointsTo e, string name
where e.pointsTo(Value::named(name)) and not name.charAt(_) = "."
select e