Files
codeql/cpp/ql/test/library-tests/literals/uuidof/uuidof.ql
Jonas Jensen 85df60ea65 C++: Replace import default with import cpp
Some tests still used the old name for the top-level library.
2020-05-25 19:07:28 +02:00

11 lines
277 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) {
uuid = op.getValue() and
type = op.getType().toString()
}