aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/docparser.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-12-09 09:10:25 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2020-12-10 17:46:21 +0000
commit7649d2cd0405939b7ac917666c0b034fe6c7d83a (patch)
tree8bff08c6c9153be765ef52bf57eee1f647bb2e62 /sources/shiboken6/ApiExtractor/docparser.cpp
parentede91060ff2f8282b2462ef33799405e4ab9f60a (diff)
shiboken6: Fold MetaFunction::isCastOperator() into isConversionOperator()
They are basically the same thing. The complicated regular expression in isConversionOperator() apparently dates back to the old C++ parser; with clang's canonical function names, a check for startsWith("operator ") is sufficient. Change-Id: Ife948695619d36904d124e204bc91490704fd4bf Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 0b1fe169232252c506104003a09f0e5c01085909) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/docparser.cpp')
-rw-r--r--sources/shiboken6/ApiExtractor/docparser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken6/ApiExtractor/docparser.cpp b/sources/shiboken6/ApiExtractor/docparser.cpp
index d2f8a5234..d50a823fa 100644
--- a/sources/shiboken6/ApiExtractor/docparser.cpp
+++ b/sources/shiboken6/ApiExtractor/docparser.cpp
@@ -80,7 +80,7 @@ bool DocParser::skipForQuery(const AbstractMetaFunctionCPtr &func)
|| (func->attributes() & AbstractMetaAttributes::AddedMethod) != 0
|| func->isModifiedRemoved()
|| func->declaringClass() != func->ownerClass()
- || func->isCastOperator()) {
+ || func->isConversionOperator()) {
return true;
}
switch (func->functionType()) {