mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58:37 +00:00
genbindings/state: track class lookup locations
This commit is contained in:
parent
ed18c216f3
commit
d9bfece505
@ -7,6 +7,7 @@ import (
|
||||
|
||||
type lookupResultClass struct {
|
||||
PackageName string
|
||||
Class CppClass
|
||||
}
|
||||
|
||||
type lookupResultTypedef struct {
|
||||
|
@ -165,7 +165,7 @@ func generate(packageName string, srcDirs []string, allowHeaderFn func(string) b
|
||||
|
||||
// Update global state tracker (AFTER astTransformChildClasses)
|
||||
for _, c := range parsed.Classes {
|
||||
KnownClassnames[c.ClassName] = lookupResultClass{packageName}
|
||||
KnownClassnames[c.ClassName] = lookupResultClass{packageName, c /* copy */}
|
||||
}
|
||||
for _, td := range parsed.Typedefs {
|
||||
KnownTypedefs[td.Alias] = lookupResultTypedef{packageName, td /* copy */}
|
||||
|
Loading…
Reference in New Issue
Block a user