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

18 lines
265 B
Plaintext

import cpp
from Element e, string s
where
(
e instanceof DeclarationEntry or
e instanceof Declaration
) and (
e.getFile().toString() != ""
) and (
if e.(TypeDeclarationEntry).isTopLevel() then (
s = "TopLevel"
) else (
s = ""
)
)
select e, s