Files
codeql/cpp/ql/test/library-tests/ctorinits/ctors.ql
2018-08-02 17:53:23 +01:00

8 lines
233 B
Plaintext

import cpp
from Constructor c, int i, Expr e, string what
where e = c.getInitializer(i)
and what = e.getAQlClass()
and what.matches("Constructor%Init")
select c, i, what, e, count(e.getAChild()), count(e.getAChild*().(Literal))