summaryrefslogtreecommitdiff
path: root/src/qdoc/cppcodeparser.cpp
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@qt.io>2016-11-14 11:23:32 +0100
committerMartin Smith <martin.smith@qt.io>2017-08-10 07:33:19 +0000
commit55e84aa7d3fdcee269cee7adb4f253fda2293667 (patch)
treeef59ea70c0f0e3215be9a595817add6bd0b14dbd /src/qdoc/cppcodeparser.cpp
parent48063f1f1f016f940b240445e1144d05c2e8e92d (diff)
downloadqttools-55e84aa7d3fdcee269cee7adb4f253fda2293667.tar.gz
qdoc: Handle class decls outside the semantic parent
We have the class declaration for QMetaObject::Connection in qobjectdefs.h, which is outside the declaration for QMetaObject. clangqdoc wasn't handling this correctly. It created the class node for Connection with the wrong parent. This update ensures that the class node for Connection is given the class node of QMetaObject as its parent. If the semantic and lexical parent cursors of the current cursor are not the same, find the Aggregate node for the semantic parent cursor and use that node as the parent when the new class node is created. Change-Id: I40f73dad9879e39452f83bb7c0f514a7ef319208 Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src/qdoc/cppcodeparser.cpp')
0 files changed, 0 insertions, 0 deletions