summaryrefslogtreecommitdiff
path: root/src/qdoc/cppcodemarker.cpp
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@qt.io>2018-01-24 13:01:06 +0100
committerMartin Smith <martin.smith@qt.io>2018-01-26 10:06:11 +0000
commitb02913d943a36d1cb1142b2fe9d94b90cc3a63a9 (patch)
treed0434de57920c7a936e46d6507c328eeacacff6e /src/qdoc/cppcodemarker.cpp
parent135482d36409b5763292c1bf92a8bae7b8322bbe (diff)
downloadqttools-b02913d943a36d1cb1142b2fe9d94b90cc3a63a9.tar.gz
qdoc: Make setRelates() work for SharedCommentNode
When the \fn commands in a shared comment are global functions that relate to some class or namespace, the shared comment node and all the nodes sharing the comment must be marked as relating to the class or namespace. This update makes the setRelates() function virtual, and implements a special override in the SharedCommentNode to mark all the nodes in the collective as related to the class or namespace. Also added hasSharedDoc() to return true if a node is sharing a comment and the shared comment is not empty. It might be the case that it can never return false if the node is sharing a comment, but the function is convenient anyway. Change-Id: Ie064364e72fd150eacdd51a0131fe730311ee892 Reviewed-by: Martin Smith <martin.smith@qt.io>
Diffstat (limited to 'src/qdoc/cppcodemarker.cpp')
0 files changed, 0 insertions, 0 deletions