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

9 lines
235 B
Plaintext

import cpp
from Variable v, VariableAccess a, int i, string s
where v = a.getTarget()
and if exists(v.getATemplateArgument())
then s = v.getTemplateArgument(i).toString()
else (s = "<none>" and i = -1)
select v, a, i, s