Clang.jl icon indicating copy to clipboard operation
Clang.jl copied to clipboard

make field count assertion on `pretty_print` configurable

Open mofeing opened this issue 3 months ago • 0 comments

i've a pipeline that correctly translates some C++ classes but unfortunately flattens the fields inherited from the parent classes (note: this might do to a translation from C++ to C prior to Clang.jl).

i have some code that detects those fields and replaces the fields for just one field of the parent type (i.e. forces inheritance through composition), but Clang.jl throws ERROR: AssertionError: length(child_nodes) == length(fields).

this PR makes that assertion optional.

mofeing avatar Sep 16 '25 23:09 mofeing