From 0e1630a8aa24a07e19afe40b435b8b63e426f36b Mon Sep 17 00:00:00 2001 From: mappu Date: Mon, 19 Aug 2024 17:58:26 +1200 Subject: [PATCH] genbindings: up to 104 files --- cmd/genbindings/emitgo.go | 2 +- cmd/genbindings/exceptions.go | 1 + cmd/genbindings/main.go | 8 ++++++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/cmd/genbindings/emitgo.go b/cmd/genbindings/emitgo.go index 7163c040..77b75515 100644 --- a/cmd/genbindings/emitgo.go +++ b/cmd/genbindings/emitgo.go @@ -11,7 +11,7 @@ import ( func goReservedWord(s string) bool { switch s { - case "default", "const", "func", "var", "type", "len", "new", "copy", "import": + case "default", "const", "func", "var", "type", "len", "new", "copy", "import", "range": return true default: return false diff --git a/cmd/genbindings/exceptions.go b/cmd/genbindings/exceptions.go index 6fef98aa..e9df2665 100644 --- a/cmd/genbindings/exceptions.go +++ b/cmd/genbindings/exceptions.go @@ -70,6 +70,7 @@ func CheckComplexity(p CppParameter) error { "QFunctionPointer", // e.g. QGuiApplication_PlatformFunction "QGraphicsEffectSource", // e.g. used by qgraphicseffect.h, but the definition is in ???? "QAbstractUndoItem", // e.g. Defined in qtextdocument.h + "QTextObjectInterface", // e.g. qabstracttextdocumentlayout.h "QPlatformPixmap", // e.g. qpixmap.h. as below "QPlatformScreen", // e.g. qscreen.h. as below "QPlatformSurface", // e.g. qsurface.h. as below diff --git a/cmd/genbindings/main.go b/cmd/genbindings/main.go index dd7971d9..5c148438 100644 --- a/cmd/genbindings/main.go +++ b/cmd/genbindings/main.go @@ -44,6 +44,7 @@ func main() { "/usr/include/x86_64-linux-gnu/qt5/QtCore/qdatetime.h", "/usr/include/x86_64-linux-gnu/qt5/QtCore/qcalendar.h", "/usr/include/x86_64-linux-gnu/qt5/QtCore/qtimezone.h", + "/usr/include/x86_64-linux-gnu/qt5/QtCore/qurl.h", "/usr/include/x86_64-linux-gnu/qt5/QtGui/qicon.h", "/usr/include/x86_64-linux-gnu/qt5/QtGui/qiconengine.h", @@ -85,6 +86,7 @@ func main() { "/usr/include/x86_64-linux-gnu/qt5/QtGui/qinputmethod.h", "/usr/include/x86_64-linux-gnu/qt5/QtGui/qsessionmanager.h", "/usr/include/x86_64-linux-gnu/qt5/QtGui/qtextdocument.h", + "/usr/include/x86_64-linux-gnu/qt5/QtGui/qtextdocumentfragment.h", "/usr/include/x86_64-linux-gnu/qt5/QtGui/qtextcursor.h", "/usr/include/x86_64-linux-gnu/qt5/QtGui/qtextlist.h", "/usr/include/x86_64-linux-gnu/qt5/QtGui/qtexttable.h", @@ -96,6 +98,9 @@ func main() { "/usr/include/x86_64-linux-gnu/qt5/QtGui/qvector4d.h", "/usr/include/x86_64-linux-gnu/qt5/QtGui/qquaternion.h", "/usr/include/x86_64-linux-gnu/qt5/QtGui/qsurfaceformat.h", + "/usr/include/x86_64-linux-gnu/qt5/QtGui/qtextformat.h", + "/usr/include/x86_64-linux-gnu/qt5/QtGui/qabstracttextdocumentlayout.h", + "/usr/include/x86_64-linux-gnu/qt5/QtGui/qpagedpaintdevice.h", "/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h", "/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qabstractbutton.h", @@ -119,6 +124,9 @@ func main() { "/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qabstractscrollarea.h", "/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicslayout.h", "/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicslayoutitem.h", + "/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qframe.h", + "/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qscrollbar.h", + "/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qabstractslider.h", } for _, inputHeader := range includeFiles {