<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof">This is <a href="https://bugreports.qt.io/browse/QTBUG-101649" data-auth="NotApplicable" class="moz-txt-link-freetext">
https://bugreports.qt.io/browse/QTBUG-101649</a><br>
</div>
<br>
<div class="elementToProof">I don't see why qdoc shouldn't repeat a failed lookup for<br>
</div>
<br>
   \relates T<br>
   \fn foo(x)<br>
<br>
as if<br>
<br>
  \fn T::foo(x)<br>
<br>
were given, but I guess we all need to first learn to work around it, and then change back once it's fixed.<br>
<br>
But qdoc being weird should _not_ be a reason to make it non-hidden. We want hidden friends very much, because the alternative is<br>
<br>
    // foo.cpp<br>
    #include <QtCore><br>
    class Foo {};<br>
    void f() {<br>
        QDataStream ds;<br>
        Foo foo;<br>
        ds << foo;<br>
<br>
  $ ninja foo | wc -l<br>
  518<br>
<br>
HTH,<br>
Marc<br>
<br>
<div class="moz-cite-prefix">On 25.07.22 21:27, Thiago Macieira wrote:<br>
</div>
<blockquote type="cite">
<pre class="moz-quote-pre">In <a href="https://codereview.qt-project.org/c/qt/qtbase/+/422690" data-auth="NotApplicable" class="moz-txt-link-freetext">https://codereview.qt-project.org/c/qt/qtbase/+/422690</a>
Build: 
<a href="https://testresults.qt.io/coin/integration/qt/qtbase/tasks/1658767511" data-auth="NotApplicable" class="moz-txt-link-freetext">https://testresults.qt.io/coin/integration/qt/qtbase/tasks/1658767511</a>

/home/qt/work/qt/qtbase/src/corelib/kernel/qmetatype.cpp:3032: (qdoc) warning: 
clang couldn't find function when parsing \fn int qRegisterMetaType(QMetaType 
meta)

The function exists because it's unit-tested and compiled. Why can't qdoc see 
it? It's a hidden friend, but that's valid C++ and clang should see it.

</pre>
</blockquote>
<br>
</body>
</html>