diff options
| author | Martin Smith <martin.smith@digia.com> | 2014-08-04 13:30:35 +0200 |
|---|---|---|
| committer | Martin Smith <martin.smith@digia.com> | 2014-08-22 18:23:50 +0200 |
| commit | af7f944dc507734d449355ee8e09674b2993349a (patch) | |
| tree | fd19c956c333de50c0766836eac5fad202b81a84 /src/tools/qdoc/tree.cpp | |
| parent | a5570bbf9af05fa33cfcc9f167786e8d2ca1e32e (diff) | |
qdoc: Add new checkForCollision()
But don't use it yet. qdoc will check for name
collisions within a module, once we decide what
collisions to look for and what to do about them.
This change puts a rewritten checkForCollision()
function back in, but doesn't use it yet.
Change-Id: I41f9275c3ca29f228268ccf7cb2d99bbe0ce557c
Task-number: QTBUG-40506
Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com>
Diffstat (limited to 'src/tools/qdoc/tree.cpp')
| -rw-r--r-- | src/tools/qdoc/tree.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tools/qdoc/tree.cpp b/src/tools/qdoc/tree.cpp index 07c7803a7c1..6bd6a649fd0 100644 --- a/src/tools/qdoc/tree.cpp +++ b/src/tools/qdoc/tree.cpp @@ -1393,4 +1393,13 @@ const Node* Tree::findFunctionNode(const QString& target, const Node* relative, return 0; } +/*! + Search for a node that is identified by \a name. + Return a pointer to a matching node, or 0. +*/ +const Node* Tree::checkForCollision(const QString& name) +{ + return findNode(QStringList(name), 0, 0, Node::DontCare); +} + QT_END_NAMESPACE |
