Files
codeql/cpp/ql/test/library-tests/unions/Unions1.ql
Jonas Jensen 4ef5c9af62 C++: Autoformat everything
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
2019-09-09 11:25:53 +02:00

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(), ", ")