CodeQL queries 1.24

Skip to end of metadata
Go to start of metadata

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