summaryrefslogtreecommitdiff
path: root/examples/afterdoc.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/afterdoc.h')
-rw-r--r--examples/afterdoc.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/afterdoc.h b/examples/afterdoc.h
new file mode 100644
index 0000000..907dabe
--- /dev/null
+++ b/examples/afterdoc.h
@@ -0,0 +1,18 @@
+/*! A test class */
+
+class Test
+{
+ public:
+ /** An enum type.
+ * The documentation block cannot be put after the enum!
+ */
+ enum EnumType
+ {
+ int EVal1, /**< enum value 1 */
+ int EVal2 /**< enum value 2 */
+ };
+ void member(); //!< a member function.
+
+ protected:
+ int value; /*!< an integer value */
+};