summaryrefslogtreecommitdiffstats
path: root/testing/068_typed_enum.cpp
diff options
context:
space:
mode:
authorVladimír Vondruš <mosra@centrum.cz>2017-11-29 17:38:13 (GMT)
committerVladimír Vondruš <mosra@centrum.cz>2017-11-29 17:40:00 (GMT)
commit17bceb8f4580535de52d19e8cadf0d088f972bef (patch)
tree7dbf772e60b415efdc6982d3dcdb84d71dc9f0d1 /testing/068_typed_enum.cpp
parent4f45bd20d4da7d40c793ec4c4c13558581e995ac (diff)
downloadDoxygen-17bceb8f4580535de52d19e8cadf0d088f972bef.zip
Doxygen-17bceb8f4580535de52d19e8cadf0d088f972bef.tar.gz
Doxygen-17bceb8f4580535de52d19e8cadf0d088f972bef.tar.bz2
Expose underlying enum type in the XML output.
The <type> element (used for function return type and variable type) is now reused also for underlying enum type. C++03-style enum types that don't have the underlying type specified have the <type> tag as well, but empty to indicate that the underlying type is unspecified. Added a new test case for this.
Diffstat (limited to 'testing/068_typed_enum.cpp')
-rw-r--r--testing/068_typed_enum.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/testing/068_typed_enum.cpp b/testing/068_typed_enum.cpp
new file mode 100644
index 0000000..44c4123
--- /dev/null
+++ b/testing/068_typed_enum.cpp
@@ -0,0 +1,7 @@
+// objective: test underlying type and strongness for an enum
+// check: 068__typed__enum_8cpp.xml
+
+/** \file */
+
+/** @brief A strongly-typed enum */
+enum class E: unsigned short {};