mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
18 lines
265 B
Plaintext
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
|