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