aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2023-06-20 08:25:57 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2023-06-20 09:27:00 +0200
commit53b483c284a258f52508d7eb1868a5adf7f907fa (patch)
tree186fbabb82ffc0a00f8ec3339472529feed8b146 /sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp
parentb2c0394d3d3a5ec3f55d3c2f6f9e7204bf5646af (diff)
Add the underlying type to AbstractMetaEnum
Task-number: PYSIDE-1735 Change-Id: I7733c93baffa1396d5a43b68069e9e8848e9fe49 Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp')
-rw-r--r--sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp b/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp
index 3e096307e..44408572d 100644
--- a/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp
+++ b/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp
@@ -949,6 +949,7 @@ BaseVisitor::StartTokenResult Builder::startToken(const CXCursor &cursor)
d->m_currentEnum->setDeprecated(true);
const auto enumType = fullyResolveType(clang_getEnumDeclIntegerType(cursor));
d->m_currentEnum->setSigned(isSigned(enumType.kind));
+ d->m_currentEnum->setUnderlyingType(getTypeName(enumType));
if (std::dynamic_pointer_cast<_ClassModelItem>(d->m_scopeStack.back()))
d->m_currentEnum->setAccessPolicy(accessPolicy(clang_getCXXAccessSpecifier(cursor)));
}