mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
18 lines
427 B
Plaintext
18 lines
427 B
Plaintext
import cpp
|
|
|
|
string interestingQlClass(Variable v) {
|
|
result = v.getAQlClass() and
|
|
(
|
|
result.matches("%Variable%")
|
|
or
|
|
result.matches("%Field%")
|
|
)
|
|
}
|
|
|
|
from Variable v, Type t, string const, string static
|
|
where
|
|
t = v.getType() and
|
|
(if v.isConst() then const = "const" else const = "") and
|
|
if v.isStatic() then static = "static" else static = ""
|
|
select v, t, concat(interestingQlClass(v), ", "), const, static
|