Files
codeql/cpp/ql/test/library-tests/literals/uuidof/uuidof.ql
2018-08-02 17:53:23 +01:00

14 lines
291 B
Plaintext

import default
query predicate classUuids(Class cls, string uuid) {
if exists(cls.getUuid()) then
uuid = cls.getUuid()
else
uuid = ""
}
query predicate uuidofOperators(UuidofOperator op, string type, string uuid) {
uuid = op.getValue() and
type = op.getType().toString()
}