qdoc: Ignore property functions of obsolete properties
authorMartin Smith <martin.smith@nokia.com>
Thu, 2 Aug 2012 11:25:55 +0000 (13:25 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 2 Aug 2012 18:38:54 +0000 (20:38 +0200)
Property setter and getter functions are no longer
included in the output when the property itself has
been marked \obsolete.

Task nr: QTBUG-26425

Change-Id: Iac315445d1916467b12be03989bd4513a03a2397
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
src/tools/qdoc/cppcodemarker.cpp
src/tools/qdoc/cppcodeparser.cpp

index 61f8070..166ede9 100644 (file)
@@ -578,6 +578,12 @@ QList<Section> CppCodeMarker::sections(const InnerNode *inner,
                         isSlot = (func->metaness() == FunctionNode::Slot);
                         isSignal = (func->metaness() == FunctionNode::Signal);
                         isStatic = func->isStatic();
+                        if (func->associatedProperty()) {
+                            if (func->associatedProperty()->status() == Node::Obsolete) {
+                                ++c;
+                                continue;
+                            }
+                        }
                     }
                     else if ((*c)->type() == Node::Variable) {
                         const VariableNode *var = static_cast<const VariableNode *>(*c);
index c95e03f..c072243 100644 (file)
@@ -330,11 +330,11 @@ void CppCodeParser::doneParsingHeaderFiles(Tree *tree)
  */
 void CppCodeParser::doneParsingSourceFiles(Tree *tree)
 {
-    tree->root()->makeUndocumentedChildrenInternal();
     tree->root()->clearCurrentChildPointers();
     tree->root()->normalizeOverloads();
     tree->fixInheritance();
     tree->resolveProperties();
+    tree->root()->makeUndocumentedChildrenInternal();
 }
 
 /*!