Files
codeql/cpp/ql/test/library-tests/unnamed/elements.ql
2019-12-13 17:06:05 -07:00

9 lines
254 B
Plaintext

import cpp
from Element e, string s
where
not e instanceof Folder and
exists(e.toString()) and // Work around `VariableDeclarationEntry.toString()` not holding
if e instanceof VariableAccess then s = "Variable access" else s = "Other"
select e, s