chiark / gitweb /
doxygen: ignore private non-virtual functions in user-defined groups.
authorVladimír Vondruš <mosra@centrum.cz>
Thu, 13 Sep 2018 16:44:43 +0000 (18:44 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Thu, 13 Sep 2018 16:44:43 +0000 (18:44 +0200)
Only documented virtual private functions are shown.

doxygen/dox2html5.py
doxygen/test/compound_listing/Directory/Sub/Class.h

index c3d68f500922ab48c9fb6f94b923590d7fe08711..0fac50f17d9ad1f15607b52252217613556e110c 100755 (executable)
@@ -2473,6 +2473,11 @@ def parse_xml(state: State, xml: str):
                             list += [('typedef', typedef)]
                             if typedef.has_details: compound.has_typedef_details = True
                     elif memberdef.attrib['kind'] == 'function':
+                        # Gather only private functions that are virtual and
+                        # documented
+                        if memberdef.attrib['prot'] == 'private' and (memberdef.attrib['virt'] == 'non-virtual' or (not memberdef.find('briefdescription').text and not memberdef.find('detaileddescription').text)):
+                            continue
+
                         func = parse_func(state, memberdef)
                         if func:
                             list += [('func', func)]
index 9440e57f3dfdc838d708e5ed4f5d5509c6fbb236..7b12ba85fba22b1d766a96fde6e9cc380e8dd170 100644 (file)
@@ -110,6 +110,9 @@ class Class {
         /** @brief Private virtual function in a group */
         virtual int doStuff() = 0;
 
+        /** @brief Private non-virtual function in a group shouldn't appear in the docs */
+        int doStuffIgnored();
+
         /*@}*/
 
         /** @brief This shouldn't appear in the docs */