Files
codeql/cpp/ql/test/library-tests/literals/uuidof/uuidof.ql
2024-01-11 22:11:50 +01:00

11 lines
324 B
Plaintext

import cpp
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) {
(if exists(op.getValue()) then uuid = op.getValue() else uuid = "") and
type = op.getType().toString()
}