summaryrefslogtreecommitdiffstats
path: root/test/input
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-03-04 19:26:54 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-21 21:11:36 (GMT)
commit4036d255ab698632bb5414b1417e9107b2f62df7 (patch)
tree2ffa6278d6d39c43afdd0dd31cf250d4f80c8fe1 /test/input
parentc722f17c03226b1101cdd732e169360b5f9a81a0 (diff)
downloadCastXML-4036d255ab698632bb5414b1417e9107b2f62df7.zip
CastXML-4036d255ab698632bb5414b1417e9107b2f62df7.tar.gz
CastXML-4036d255ab698632bb5414b1417e9107b2f62df7.tar.bz2
Output: Generate Enumeration elements
Implement the OutputEnumDecl method to generate the Enumeration element. Report the name="", context="", and location="" of the declaration. Inside the Enumeration element generate EnumValue elements describing the enumeration names and initializers. Also map enum types to the corresponding declarations.
Diffstat (limited to 'test/input')
-rw-r--r--test/input/Enumeration.cxx4
-rw-r--r--test/input/Typedef-to-Enumeration.cxx2
2 files changed, 6 insertions, 0 deletions
diff --git a/test/input/Enumeration.cxx b/test/input/Enumeration.cxx
new file mode 100644
index 0000000..1cdd25c
--- /dev/null
+++ b/test/input/Enumeration.cxx
@@ -0,0 +1,4 @@
+enum start {
+ ev0,
+ ev2 = 2
+};
diff --git a/test/input/Typedef-to-Enumeration.cxx b/test/input/Typedef-to-Enumeration.cxx
new file mode 100644
index 0000000..9a1db81
--- /dev/null
+++ b/test/input/Typedef-to-Enumeration.cxx
@@ -0,0 +1,2 @@
+enum E {};
+typedef E start;