diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-11-30 18:39:25 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-12-07 12:31:15 +0000 |
| commit | ed87e710dd14bc9612dcfdba2e09143201768556 (patch) | |
| tree | 0c7dd4b49e4a891c57d514fca39642abfaad91f6 /sources/shiboken6/ApiExtractor/abstractmetabuilder.h | |
| parent | eb16797b9a54970dbc0c461ebeddda57b060af22 (diff) | |
shiboken6: Add support for a snake case typesystem attribute
Add a snake case attribute to type system, complex type entry,
function type entry as well as to function and field modifications.
Add a function definitionNames() to AbstractMetaFunction/Field
returning the names under which the function/field will be registered.
Change the code writing the registration accordingly.
Fixes: PYSIDE-1441
Change-Id: I178390bb80fa25aad9f8a56e99e4cc70064178eb
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/abstractmetabuilder.h')
| -rw-r--r-- | sources/shiboken6/ApiExtractor/abstractmetabuilder.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sources/shiboken6/ApiExtractor/abstractmetabuilder.h b/sources/shiboken6/ApiExtractor/abstractmetabuilder.h index cd9f36ca9..5b0414cd0 100644 --- a/sources/shiboken6/ApiExtractor/abstractmetabuilder.h +++ b/sources/shiboken6/ApiExtractor/abstractmetabuilder.h @@ -32,6 +32,7 @@ #include "abstractmetalang_typedefs.h" #include "header_paths.h" #include "dependency.h" +#include "typesystem_enums.h" #include "clangparser/compilersupport.h" @@ -106,6 +107,11 @@ public: translateType(const QString &t, AbstractMetaClass *currentClass = nullptr, TranslateTypeFlags flags = {}, QString *errorMessage = nullptr); + static QString getSnakeCaseName(const QString &name); + // Names under which an item will be registered to Python depending on snakeCase + static QStringList definitionNames(const QString &name, + TypeSystem::SnakeCase snakeCase); + #ifndef QT_NO_DEBUG_STREAM void formatDebug(QDebug &d) const; #endif |
