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

12 lines
298 B
Plaintext

import cpp
string clazz(Declaration d) {
(d instanceof ProxyClass and result = "ProxyClass") or
(d instanceof TemplateParameter and result = "TemplateParameter") or
(d instanceof Struct and result = "Struct")
}
from Declaration d
where d.getLocation().getStartLine() > 0
select d, clazz(d)