36 const QRegularExpression scoped_fn{R"((?:\w+(?:<[^>]+>)?::)+~?\w\S*\()"};
37 auto match = scoped_fn.match(signature);
41 auto scope = match.captured().split(
"::"_L1);
45 if (qsizetype pos = s.indexOf(
'<'); pos >= 0)
49 if (parent && !(parent->isClassNode() || parent->isNamespace())) {
50 qCDebug(lcQdoc).noquote()
51 <<
"Invalid scope:" << qPrintable(parent->nodeTypeString())
52 << qPrintable(parent->fullName())
53 <<
"for \\fn" << qPrintable(signature);
58 if (parent->isInternal())
60 parent = parent->parent();