diff --git a/cmd/genbindings/main.go b/cmd/genbindings/main.go index 1c5ef115..2dd7f8aa 100644 --- a/cmd/genbindings/main.go +++ b/cmd/genbindings/main.go @@ -87,6 +87,7 @@ func main() { } // AST transforms on our IL + astTransformBlacklist(parsed) astTransformOptional(parsed) astTransformOverloads(parsed) diff --git a/cmd/genbindings/transformblacklist.go b/cmd/genbindings/transformblacklist.go new file mode 100644 index 00000000..254c2021 --- /dev/null +++ b/cmd/genbindings/transformblacklist.go @@ -0,0 +1,16 @@ +package main + +// astTransformBlacklist filters out things we do not want to parse. +func astTransformBlacklist(parsed *CppParsedHeader) { + var keep []CppClass + + for _, c := range parsed.Classes { + if c.ClassName[0] != 'Q' { + continue + } + + keep = append(keep, c) + } + + parsed.Classes = keep +}