Call to constructor
Author: LGTM
import cpp
from NewExpr new, Constructor c
where
c = new.getInitializer().(ConstructorCall).getTarget() and
c.getName() = 'MyClass'
select new
Description
Finds places where we call `new MyClass(...)`
import cpp
from NewExpr new, Constructor c
where
c = new.getInitializer().(ConstructorCall).getTarget() and
c.getName() = 'MyClass'
select new
Finds places where we call `new MyClass(...)`