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.
21 lines
388 B
Plaintext
21 lines
388 B
Plaintext
/**
|
|
* @id py/examples/extend-class
|
|
* @name Class subclasses
|
|
* @description Finds classes that subclass MyClass
|
|
* @tags class
|
|
* extends
|
|
* implements
|
|
* overrides
|
|
* subtype
|
|
* supertype
|
|
*/
|
|
|
|
import python
|
|
private import LegacyPointsTo
|
|
|
|
from ClassObject sub, ClassObject base
|
|
where
|
|
base.getName() = "MyClass" and
|
|
sub.getABaseType() = base
|
|
select sub
|