mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
One might argue that these should be rewritten entirely to use more modern APIs, but for now I'll be content with just having them compile properly.
15 lines
271 B
Plaintext
15 lines
271 B
Plaintext
/**
|
|
* @id py/examples/recursion
|
|
* @name Recursion
|
|
* @description Finds functions that call themselves
|
|
* @tags method
|
|
* recursion
|
|
*/
|
|
|
|
import python
|
|
private import LegacyPointsTo
|
|
|
|
from PythonFunctionValue f
|
|
where f.getACall().getScope() = f.getScope()
|
|
select f
|