diff options
author | Brad King <brad.king@kitware.com> | 2014-03-04 19:26:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-03-21 21:11:36 (GMT) |
commit | 4036d255ab698632bb5414b1417e9107b2f62df7 (patch) | |
tree | 2ffa6278d6d39c43afdd0dd31cf250d4f80c8fe1 /test/input | |
parent | c722f17c03226b1101cdd732e169360b5f9a81a0 (diff) | |
download | CastXML-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.cxx | 4 | ||||
-rw-r--r-- | test/input/Typedef-to-Enumeration.cxx | 2 |
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; |