Open marius-pelegrin-arm opened 3 weeks ago
CI gfxreconstruct build queued with queue ID 181480.
CI gfxreconstruct build # 4124 running.
CI gfxreconstruct build # 4124 failed.
CI gfxreconstruct build queued with queue ID 192841.
CI gfxreconstruct build # 4243 running.
CI gfxreconstruct build # 4243 passed.
The method
BaseGenerator.check_struct_pnext_handles
inbase_generator.py
should returnTrue
if the specified struct contains handles, handle pointers, or if a struct that contains handle or handle pointers can be referenced through it (either by thepNext
chain or with a member that would be a struct or struct pointer).Until now, to determine if a struct can reference such another struct, the method was retrieving
valid_extension_structs
which query structs that contains a fieldstructextends
with the checked struct. The issue is that if structA
and structB
both extend structC
, then structA
can be in thepNext
chain of structB
(and otherwise) which was not detected.This commit proposes to solve this issue by including in the
valid_extensions_structs
all the structs extending the parent struct of the checked struct.