diff options
author | Topi Reinio <topi.reinio@qt.io> | 2020-01-02 10:42:33 +0100 |
---|---|---|
committer | Topi Reiniƶ <topi.reinio@qt.io> | 2020-01-05 11:01:04 +0000 |
commit | d4064dd83eca3df5c766d1c456fa060233a1288d (patch) | |
tree | 4419bc5015d99e099e4bf308191ff07c8a7cd7d1 /src/qdoc/sections.cpp | |
parent | 4dcc7a3d10a223ddd111eaaac6665609add7c46f (diff) |
qdoc: Fix regression in C++ functions sharing a documentation comment
After a recent refactoring, the function that distributes c++
documentation nodes failed to do anything with a function node that
was sharing a comment with other nodes.
Fix the issue and add a testcase for shared c++ \fn documentation
comments.
Fixes: QTBUG-81005
Change-Id: I6320bab232671f8cd969a37136708fc172de8409
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/qdoc/sections.cpp')
-rw-r--r-- | src/qdoc/sections.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/qdoc/sections.cpp b/src/qdoc/sections.cpp index 7d5bcf03f..edfa212ce 100644 --- a/src/qdoc/sections.cpp +++ b/src/qdoc/sections.cpp @@ -826,10 +826,8 @@ void Sections::distributeNodeInDetailsVector(SectionVector &dv, Node *n) } if (fn->isIgnored()) return; - if (!fn->isSharingComment()) { - if (!fn->hasAssociatedProperties() || !fn->doc().isEmpty()) - dv[DetailsMemberFunctions].insert(n); - } + if (!fn->hasAssociatedProperties() || !fn->doc().isEmpty()) + dv[DetailsMemberFunctions].insert(n); return; } if (t->isRelatedNonmember()) { |