Files
codeql/cpp/ql/test/library-tests/proxy_class/locations.ql
Jeroen Ketema b7d1da8741 C++: Introduce a new base class for template parameters
This will enable us to support non-type template parameters, which we
currently do not support, and error template parameters, which might
become relevant in the `build-mode: none` context.
2024-12-17 20:25:41 +01:00

14 lines
304 B
Plaintext

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