summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rw-r--r--xsd/cxx/tree/name-processor.cxx4
2 files changed, 7 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index eed2630..9b73e6e 100644
--- a/NEWS
+++ b/NEWS
@@ -48,6 +48,9 @@ Version 3.3.0
can process parts of the document as they become available as well as
handle documents that are too large to fit into memory.
+ * Empty XML Schema enumeration values are now mapped to the 'empty' C++
+ enumerator name instead of 'cxx'.
+
Version 3.2.0
* New option, --disable-warning, disables printing of a warning with
diff --git a/xsd/cxx/tree/name-processor.cxx b/xsd/cxx/tree/name-processor.cxx
index 456095f..1adfc38 100644
--- a/xsd/cxx/tree/name-processor.cxx
+++ b/xsd/cxx/tree/name-processor.cxx
@@ -249,6 +249,10 @@ namespace CXX
// Enumerator name regex.
//
{
+ // By default map an empty enumerator to the 'empty' word.
+ //
+ enumerator_regex.push_back ("/^$/empty/");
+
compile_regex (options.value<CLI::enumerator_regex> (),
enumerator_regex,
"enumerator");