mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
22 lines
599 B
Plaintext
22 lines
599 B
Plaintext
import cpp
|
|
|
|
string describe(Element e) {
|
|
result = "function " + e.(Function).getFullSignature()
|
|
or
|
|
result =
|
|
"function declaration entry for " +
|
|
e.(FunctionDeclarationEntry).getFunction().getFullSignature()
|
|
or
|
|
result = "parameter for " + e.(Parameter).getFunction().getFullSignature()
|
|
or
|
|
result =
|
|
"parameter declaration entry for " +
|
|
e.(ParameterDeclarationEntry).getFunctionDeclarationEntry().getFunction().getFullSignature()
|
|
}
|
|
|
|
from Element e
|
|
where
|
|
not e.getLocation() instanceof UnknownLocation and
|
|
not e instanceof Folder
|
|
select e, concat(describe(e), ", ")
|