Python: Add better class support, including inheritance.

This commit is contained in:
Mark Shannon
2019-03-20 14:35:41 +00:00
parent 5a46df2132
commit bf692f4aad
11 changed files with 570 additions and 55 deletions

View File

@@ -0,0 +1 @@
fail

View File

@@ -0,0 +1,8 @@
import python
private import semmle.python.objects.ObjectInternal
from ClassObjectInternal cls, ControlFlowNode f
where cls.introduced(f, _)
select cls.getName(), f

View File

@@ -0,0 +1,8 @@
class Foo(object):
pass
class Bar(object):
pass