aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2024-01-23 09:46:06 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2024-01-23 14:48:09 +0100
commite182d16ac148e92225f043b33715981a9f567228 (patch)
tree921a88137f384e30dc6caa92ce2696bd7fb58ec2 /sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp
parentdb554a0cb574ddbb2bb27de7649976bcaa85cdfe (diff)
shiboken6: Improve messages when skipping fields and functions
Store the source location in the clang parser so that it appears in the message. Also add the access level. Change-Id: I9a9ca414a41a3fa4584dd55d580aa01bb252f9c7 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.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp b/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp
index 3544e4ee9..47ac2e962 100644
--- a/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp
+++ b/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp
@@ -431,6 +431,7 @@ void BuilderPrivate::addField(const CXCursor &cursor)
field->setScope(m_scope);
field->setType(createTypeInfo(cursor));
field->setMutable(clang_CXXField_isMutable(cursor) != 0);
+ setFileName(cursor, field.get());
m_currentField = field;
m_scopeStack.back()->addVariable(field);
}
@@ -1057,6 +1058,7 @@ BaseVisitor::StartTokenResult Builder::startToken(const CXCursor &cursor)
}
}
d->m_currentFunction = d->createFunction(cursor, CodeModel::Normal, true);
+ d->setFileName(cursor, d->m_currentFunction.get());
d->m_scopeStack.back()->addFunction(d->m_currentFunction);
break;
case CXCursor_FunctionDecl: