]> git.saurik.com Git - wxWidgets.git/commitdiff
mention that both gccxml and doxygen are smart enough to mark as virtual functions...
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Tue, 25 Mar 2008 17:41:11 +0000 (17:41 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Tue, 25 Mar 2008 17:41:11 +0000 (17:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

utils/ifacecheck/src/xmlparser.cpp

index 48dcdc21487fefdb841a215f87e20021b4afef5a..d694d9a87cf413172e1e8f3b56e8101f7a4301ac 100644 (file)
@@ -904,6 +904,12 @@ bool wxXmlGccInterface::ParseMethod(const wxXmlNode *p,
     m.SetArgumentTypes(argtypes);
     m.SetConst(p->GetAttribute("const") == "1");
     m.SetStatic(p->GetAttribute("static") == "1");
+
+    // NOTE: gccxml is smart enough to mark as virtual those functions
+    //       which are declared virtual in base classes but don't have
+    //       the "virtual" keyword explicitely indicated in the derived
+    //       classes... so we don't need any further logic for virtuals
+
     m.SetVirtual(p->GetAttribute("virtual") == "1");
     m.SetPureVirtual(p->GetAttribute("pure_virtual") == "1");
     m.SetDeprecated(p->GetAttribute("attributes") == "deprecated");
@@ -1192,6 +1198,12 @@ bool wxXmlDoxygenInterface::ParseMethod(const wxXmlNode* p, wxMethod& m, wxStrin
     m.SetArgumentTypes(args);
     m.SetConst(p->GetAttribute("const")=="yes");
     m.SetStatic(p->GetAttribute("static")=="yes");
+
+    // NOTE: Doxygen is smart enough to mark as virtual those functions
+    //       which are declared virtual in base classes but don't have
+    //       the "virtual" keyword explicitely indicated in the derived
+    //       classes... so we don't need any further logic for virtuals
+
     m.SetVirtual(p->GetAttribute("virt")=="virtual");
     m.SetPureVirtual(p->GetAttribute("virt")=="pure-virtual");