mirror of
https://github.com/mappu/miqt.git
synced 2024-12-23 01:18:37 +00:00
genbindings: skip non-Qt classes found
This commit is contained in:
parent
94182079e1
commit
a6d63f33d2
@ -87,6 +87,7 @@ func main() {
|
||||
}
|
||||
|
||||
// AST transforms on our IL
|
||||
astTransformBlacklist(parsed)
|
||||
astTransformOptional(parsed)
|
||||
astTransformOverloads(parsed)
|
||||
|
||||
|
16
cmd/genbindings/transformblacklist.go
Normal file
16
cmd/genbindings/transformblacklist.go
Normal file
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user