aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/docparser.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-12-13 17:23:38 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-12-13 20:06:22 +0100
commitb2008ac1e4441d92788ee986baa2a1df62be85e7 (patch)
tree2c2c297a4bbb54ce6ac9ecb790688a31a6b4a035 /sources/shiboken6/ApiExtractor/docparser.cpp
parent133b91abb330f8e496f3a82920e000ab079f358e (diff)
Documentation: Skip functions using RValue references
Pick-to: 6.2 Change-Id: I7a4990e8d389d493ddd6155d12a1c2cc36b0e450 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/docparser.cpp')
-rw-r--r--sources/shiboken6/ApiExtractor/docparser.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/sources/shiboken6/ApiExtractor/docparser.cpp b/sources/shiboken6/ApiExtractor/docparser.cpp
index 9445adf81..8c370f409 100644
--- a/sources/shiboken6/ApiExtractor/docparser.cpp
+++ b/sources/shiboken6/ApiExtractor/docparser.cpp
@@ -73,6 +73,11 @@ QString DocParser::execXQuery(const XQueryPtr &xquery, const QString& query)
return result;
}
+static bool usesRValueReference(const AbstractMetaArgument &a)
+{
+ return a.type().referenceType() == RValueReference;
+}
+
bool DocParser::skipForQuery(const AbstractMetaFunctionCPtr &func)
{
// Skip private functions and copies created by AbstractMetaClass::fixFunctions()
@@ -91,7 +96,9 @@ bool DocParser::skipForQuery(const AbstractMetaFunctionCPtr &func)
default:
break;
}
- return false;
+
+ return std::any_of(func->arguments().cbegin(), func->arguments().cend(),
+ usesRValueReference);
}
AbstractMetaFunctionCList DocParser::documentableFunctions(const AbstractMetaClass *metaClass)