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

9 lines
305 B
Plaintext

import cpp
from Namespace n, string sane, string parent
where if n.hasName(n.getName()) then sane = "Yes" else sane = "No"
and if exists(n.getParentNamespace())
then parent = n.getParentNamespace().toString()
else parent = "<none>"
select n, n.getName(), n.getQualifiedName(), sane, parent