mirror of
https://github.com/github/codeql.git
synced 2025-12-23 12:16:33 +01:00
22 lines
428 B
Plaintext
22 lines
428 B
Plaintext
/**
|
|
* @name Functions1
|
|
*/
|
|
|
|
import cpp
|
|
|
|
string describe(Function f) {
|
|
f.isTopLevel() and
|
|
result = "isTopLevel"
|
|
or
|
|
f instanceof TopLevelFunction and
|
|
result = "TopLevelFunction"
|
|
or
|
|
result = "declaration:" + f.getADeclarationLocation()
|
|
or
|
|
result = "definition:" + f.getDefinitionLocation()
|
|
}
|
|
|
|
from Function f
|
|
where exists(f.getLocation())
|
|
select f, f.getName(), f.getParameterString(), concat(describe(f), ", ")
|