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

11 lines
328 B
Plaintext

import cpp
from Struct s, int i, string m, string members, string locations
where
if exists(s.getAMember())
then m = s.getAMember(i).toString()
else (m = "<none>" and i = -1)
and members = count(s.getAMember()) + " members"
and locations = count(s.getLocation()) + " locations"
select s, members, locations, i, m