diff --git a/cmd/genbindings/clang2il.go b/cmd/genbindings/clang2il.go index 28bba98c..1f1eab1d 100644 --- a/cmd/genbindings/clang2il.go +++ b/cmd/genbindings/clang2il.go @@ -137,6 +137,13 @@ nextMethod: return CppClass{}, err } + // Some QFoo constructors take a QFooPrivate + for _, p := range mm.Parameters { + if strings.Contains(p.ParameterType, "Private") { + log.Printf("Skipping constructor taking Private type") + continue nextMethod + } + } ret.Ctors = append(ret.Ctors, mm)