mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Some files that will change in #1736 have been spared. ./build -j4 target/jars/qlformat find ql/cpp/ql -name "*.ql" -print0 | xargs -0 target/jars/qlformat --input find ql/cpp/ql -name "*.qll" -print0 | xargs -0 target/jars/qlformat --input (cd ql && git checkout 'cpp/ql/src/semmle/code/cpp/ir/implementation/**/*SSA*.qll') buildutils-internal/scripts/pr-checks/sync-identical-files.py --latest
20 lines
591 B
Plaintext
20 lines
591 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), ", ")
|