mirror of
https://github.com/github/codeql.git
synced 2025-12-19 18:33:16 +01:00
15 lines
334 B
Plaintext
15 lines
334 B
Plaintext
import cpp
|
|
|
|
string describe(UsingEntry ue) {
|
|
ue instanceof UsingDeclarationEntry and
|
|
result = "UsingDeclarationEntry"
|
|
or
|
|
ue instanceof UsingDirectiveEntry and
|
|
result = "UsingDirectiveEntry"
|
|
or
|
|
result = "enclosingElement:" + ue.getEnclosingElement().toString()
|
|
}
|
|
|
|
from UsingEntry ue
|
|
select ue, concat(describe(ue), ", ")
|