mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
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.
14 lines
304 B
Plaintext
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)
|