chiark / gitweb /
documentation/doxygen: expand the enum test with anonymous enums.
authorVladimír Vondruš <mosra@centrum.cz>
Tue, 10 Sep 2024 09:41:09 +0000 (11:41 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Tue, 10 Sep 2024 09:41:09 +0000 (11:41 +0200)
This was verified only in an "integration" test along with a ton of other
features, better to have a dedicated case for it as well.

documentation/test_doxygen/cpp_enum/Doxyfile [moved from documentation/test_doxygen/cpp_enum_class/Doxyfile with 100% similarity]
documentation/test_doxygen/cpp_enum/File.h [moved from documentation/test_doxygen/cpp_enum_class/File.h with 79% similarity]
documentation/test_doxygen/cpp_enum/File_8h.html [moved from documentation/test_doxygen/cpp_enum_class/File_8h.html with 79% similarity]
documentation/test_doxygen/test_cpp.py

similarity index 79%
rename from documentation/test_doxygen/cpp_enum_class/File.h
rename to documentation/test_doxygen/cpp_enum/File.h
index 2b19e5f2c4865c3f1e518f37966560640002bb9f..80d70c18cf527e5eb1f48e81f49c6ecc35bf8998 100644 (file)
@@ -16,3 +16,8 @@ enum E: int {
 
 /** @brief Strong implicitly typed enum */
 enum class F {};
+
+enum: long {
+    /** @brief Constant in an unnamed typed enum */
+    Unnamed = -1337
+};
similarity index 79%
rename from documentation/test_doxygen/cpp_enum_class/File_8h.html
rename to documentation/test_doxygen/cpp_enum/File_8h.html
index 4571ff44f2007ebfb6a4280f65199f5983c40350..9ebb2d52488857b86bb1571e92422eb214d5ec14 100644 (file)
               <span class="m-doc-wrap-bumper">enum class <a href="#a1fd406685cbdee605d0a7bebed56fdb0" class="m-doc-self">F</a> { </span><span class="m-doc-wrap"> }</span>
             </dt>
             <dd>Strong implicitly typed enum.</dd>
+            <dt>
+              <span class="m-doc-wrap-bumper">enum <a href="#a3e2c3c2979bc59f7afd8ee77148e7e19" class="m-doc">(anonymous)</a>: long { </span><span class="m-doc-wrap"><a href="#a3e2c3c2979bc59f7afd8ee77148e7e19a2729996acdfa5e398794ba14418d510b" class="m-doc">Unnamed</a> = -1337 }</span>
+            </dt>
+            <dd></dd>
           </dl>
         </section>
         <section>
               </tbody>
             </table>
           </div></section>
+          <section class="m-doc-details" id="a3e2c3c2979bc59f7afd8ee77148e7e19"><div>
+            <h3>
+              enum <a href="#a3e2c3c2979bc59f7afd8ee77148e7e19" class="m-doc-self">(anonymous)</a>: long
+            </h3>
+            <table class="m-table m-fullwidth m-flat m-doc">
+              <thead><tr><th style="width: 1%">Enumerators</th><th></th></tr></thead>
+              <tbody>
+                <tr>
+                  <td><a href="#a3e2c3c2979bc59f7afd8ee77148e7e19a2729996acdfa5e398794ba14418d510b" class="m-doc-self" id="a3e2c3c2979bc59f7afd8ee77148e7e19a2729996acdfa5e398794ba14418d510b">Unnamed</a></td>
+                  <td>
+                  <p>Constant in an unnamed typed enum.</p>
+                  </td>
+                </tr>
+              </tbody>
+            </table>
+          </div></section>
         </section>
       </div>
     </div>
index ffe09f9f64d1d84643ad20fc9ad9eb6df0a2a24c..52dd64f5b027419ebc789f3af44c850a2964f07a 100644 (file)
@@ -27,7 +27,7 @@ import unittest
 
 from . import IntegrationTestCase, doxygen_version, parse_version
 
-class EnumClass(IntegrationTestCase):
+class Enum(IntegrationTestCase):
     @unittest.skipUnless(parse_version(doxygen_version()) > parse_version("1.8.13"),
                          "https://github.com/doxygen/doxygen/pull/627")
     def test(self):