mirror of
https://github.com/mappu/miqt.git
synced 2025-01-03 06:08:38 +00:00
genbindings/main: better handling for skipping empty files
This commit is contained in:
parent
7347073bd8
commit
24a41b18b5
@ -367,9 +367,10 @@ type CppParsedHeader struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c CppParsedHeader) Empty() bool {
|
func (c CppParsedHeader) Empty() bool {
|
||||||
return len(c.Typedefs) == 0 &&
|
// If there are only typedefs, that still counts as empty since typedefs
|
||||||
len(c.Enums) == 0 &&
|
// are fully resolved inside genbindings, not exposed in MIQT classes
|
||||||
len(c.Classes) == 0
|
|
||||||
|
return len(c.Enums) == 0 && len(c.Classes) == 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *CppParsedHeader) AddContentFrom(other *CppParsedHeader) {
|
func (c *CppParsedHeader) AddContentFrom(other *CppParsedHeader) {
|
||||||
|
Loading…
Reference in New Issue
Block a user