mirror of
https://github.com/github/codeql.git
synced 2025-12-19 02:13:17 +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
401 B
Plaintext
20 lines
401 B
Plaintext
import cpp
|
|
|
|
string describe(Class c) {
|
|
c instanceof Struct and
|
|
result = "Struct"
|
|
or
|
|
c instanceof Union and
|
|
result = "Union"
|
|
or
|
|
c instanceof LocalUnion and
|
|
result = "LocalUnion"
|
|
or
|
|
c instanceof NestedUnion and
|
|
result = "NestedUnion"
|
|
}
|
|
|
|
from Class c
|
|
select c, concat(describe(c), ", "), concat(c.getABaseClass().toString(), ", "),
|
|
concat(c.getAMemberFunction().toString(), ", ")
|