From 1102f678c44efd01ce1b22df6a6f5362f3e8526c Mon Sep 17 00:00:00 2001 From: mappu Date: Wed, 14 Aug 2024 18:39:04 +1200 Subject: [PATCH] genbindings: skip private constructors --- cmd/genbindings/clang2il.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/genbindings/clang2il.go b/cmd/genbindings/clang2il.go index 5e4d4456..f03590ad 100644 --- a/cmd/genbindings/clang2il.go +++ b/cmd/genbindings/clang2il.go @@ -179,6 +179,9 @@ nextMethod: // These seem to have no useful content case "CXXConstructorDecl": + if !visibility { + continue // Skip private/protected + } if ret.Abstract { continue // The bindings can't construct an abstract class