aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2025-09-10 14:55:49 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2025-09-17 14:07:15 +0200
commita5e2d40f9c729988f0e763c275dbbc2e6cf3fefe (patch)
tree538affcf3f61bcc95cb8287939210e793a9ae180 /sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp
parent8e4d255d26b1e8e9a6a94c568892ae9757fec0e8 (diff)
shiboken6/code model: _TypeDefModelItem: Add access
Change-Id: I45eaf7f67588fd7c25ff2eab959d2470e62c6e87 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
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 33f3f1ae6..a3be50249 100644
--- a/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp
+++ b/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp
@@ -623,6 +623,7 @@ void BuilderPrivate::addTypeDef(const CXCursor &cursor, const CXType &cxType)
setFileName(cursor, item.get());
item->setType(createTypeInfo(cxType));
item->setScope(m_scope);
+ item->setAccessPolicy(accessPolicy(clang_getCXXAccessSpecifier(cursor)));
m_scopeStack.back()->addTypeDef(item);
}