Create new object
Author: LGTM
import python
from Call new, ClassValue cls
where
cls.getName() = 'MyClass' and
new.getFunc().pointsTo(cls)
select newDescription
Finds places where we create a new instanceof `MyClass`
import python
from Call new, ClassValue cls
where
cls.getName() = 'MyClass' and
new.getFunc().pointsTo(cls)
select newFinds places where we create a new instanceof `MyClass`