From: Vladimír Vondruš Date: Tue, 10 Sep 2024 09:41:09 +0000 (+0200) Subject: documentation/doxygen: expand the enum test with anonymous enums. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=bcd5234567de5c9905932535125d49dfc1354da2;p=blog.git documentation/doxygen: expand the enum test with anonymous enums. 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. --- diff --git a/documentation/test_doxygen/cpp_enum_class/Doxyfile b/documentation/test_doxygen/cpp_enum/Doxyfile similarity index 100% rename from documentation/test_doxygen/cpp_enum_class/Doxyfile rename to documentation/test_doxygen/cpp_enum/Doxyfile diff --git a/documentation/test_doxygen/cpp_enum_class/File.h b/documentation/test_doxygen/cpp_enum/File.h similarity index 79% rename from documentation/test_doxygen/cpp_enum_class/File.h rename to documentation/test_doxygen/cpp_enum/File.h index 2b19e5f2..80d70c18 100644 --- a/documentation/test_doxygen/cpp_enum_class/File.h +++ b/documentation/test_doxygen/cpp_enum/File.h @@ -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 +}; diff --git a/documentation/test_doxygen/cpp_enum_class/File_8h.html b/documentation/test_doxygen/cpp_enum/File_8h.html 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 4571ff44..9ebb2d52 100644 --- a/documentation/test_doxygen/cpp_enum_class/File_8h.html +++ b/documentation/test_doxygen/cpp_enum/File_8h.html @@ -40,6 +40,10 @@ enum class F { }
Strong implicitly typed enum.
+
+ enum (anonymous): long { Unnamed = -1337 } +
+
@@ -90,6 +94,22 @@
+
+

+ enum (anonymous): long +

+ + + + + + + + +
Enumerators
Unnamed +

Constant in an unnamed typed enum.

+
+
diff --git a/documentation/test_doxygen/test_cpp.py b/documentation/test_doxygen/test_cpp.py index ffe09f9f..52dd64f5 100644 --- a/documentation/test_doxygen/test_cpp.py +++ b/documentation/test_doxygen/test_cpp.py @@ -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):