mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
11 lines
318 B
Plaintext
11 lines
318 B
Plaintext
import cpp
|
|
|
|
string describe(Variable v) {
|
|
v instanceof TemplateVariable and
|
|
result = "TemplateVariable"
|
|
}
|
|
|
|
from Variable v
|
|
select v, concat(VariableAccess a | a.getTarget() = v | a.getLocation().toString(), ", "),
|
|
concat(int i | | v.getTemplateArgument(i).toString(), ", " order by i), concat(describe(v), ", ")
|