summaryrefslogtreecommitdiffstats
path: root/src/qdoc/tree.h
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@qt.io>2018-02-12 12:11:25 +0100
committerMartin Smith <martin.smith@qt.io>2018-02-23 11:43:47 +0000
commit88472204d6ffd36eca05c88fb15233e9e8b94aa4 (patch)
tree35843663b0047bdf389e5bef37dbb99d4ccc18ba /src/qdoc/tree.h
parentc29a1b03fd0fe6cc3496a6a14c56f6ef3390b713 (diff)
qdoc: Fix bugs in resolving inheritance and finding overridden functions
A class node must have pointers to the class nodes of its base classes, but these pointers might not exist when qdoc creates the class node for the class. They might not exist until all the index files and include files have been parsewd. qdoc was trying to resolve the base classes too early. This update lets qdoc wait until it is known that everything has been built before attempting to resolve inheritance. This update also delays finding the pointer to the function node for the overridden function for a function marked "override" until the pointer is needed. Instead of storing the pointer to the node, the qualification path to the function is stored as a string, and the string is used to look up the overridden function when it is needed, which is only when the \reimp command is processed during output. The function that resolves the pointer to the overridden function was moved to the function node class, where it makes more sense. The way a few qdoc warnings are reported was also changed. Change-Id: Ia54642d11242386ae75139065f481e5d30f79fb5 Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src/qdoc/tree.h')
-rw-r--r--src/qdoc/tree.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/qdoc/tree.h b/src/qdoc/tree.h
index 1aac6d664..136928fc1 100644
--- a/src/qdoc/tree.h
+++ b/src/qdoc/tree.h
@@ -168,8 +168,6 @@ class Tree
Node::Genus genus = Node::DontCare) const;
const NamespaceNode *root() const { return &root_; }
- FunctionNode *findVirtualFunctionInBaseClasses(ClassNode *classe,
- FunctionNode *clone);
NodeList allBaseClasses(const ClassNode *classe) const;
QString refForAtom(const Atom* atom);