miqt/cmd/genbindings/transformblacklist.go

17 lines
295 B
Go
Raw Normal View History

2024-08-14 06:38:57 +00:00
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
}