mirror of
https://github.com/mappu/miqt.git
synced 2025-01-21 22:20:38 +00:00
genbindings/typedefs: support type alias declarations
This commit is contained in:
parent
fc7aeecabf
commit
6eb60232a9
@ -130,14 +130,13 @@ nextTopLevel:
|
|||||||
// TODO e.g. qfuturewatcher.h
|
// TODO e.g. qfuturewatcher.h
|
||||||
// Probably can't be supported in the Go binding
|
// Probably can't be supported in the Go binding
|
||||||
|
|
||||||
case "TypeAliasDecl", // qglobal.h
|
case "UsingDirectiveDecl", // qtextstream.h
|
||||||
"UsingDirectiveDecl", // qtextstream.h
|
"UsingDecl", // qglobal.h
|
||||||
"UsingDecl", // qglobal.h
|
"UsingShadowDecl": // global.h
|
||||||
"UsingShadowDecl": // global.h
|
|
||||||
// TODO e.g.
|
// TODO e.g.
|
||||||
// Should be treated like a typedef
|
// Should be treated like a typedef
|
||||||
|
|
||||||
case "TypedefDecl":
|
case "TypeAliasDecl", "TypedefDecl":
|
||||||
td, err := processTypedef(node, addNamePrefix)
|
td, err := processTypedef(node, addNamePrefix)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("processTypedef: %w", err)
|
return nil, fmt.Errorf("processTypedef: %w", err)
|
||||||
@ -329,7 +328,7 @@ nextMethod:
|
|||||||
|
|
||||||
ret.ChildClassdefs = append(ret.ChildClassdefs, child)
|
ret.ChildClassdefs = append(ret.ChildClassdefs, child)
|
||||||
|
|
||||||
case "TypedefDecl":
|
case "TypeAliasDecl", "TypedefDecl":
|
||||||
// Child class typedef
|
// Child class typedef
|
||||||
td, err := processTypedef(node, nodename+"::")
|
td, err := processTypedef(node, nodename+"::")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user