summaryrefslogtreecommitdiff
path: root/cli/name-processor.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-07-27 11:38:53 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-07-27 16:34:32 +0200
commitdca38b27afc25d329fd7a7241095b40e2a1ecae2 (patch)
treec656421398fd818d68f9e07130f96d7eeeaa6490 /cli/name-processor.cxx
parentc5979a2814c9211e0e3c8ae7232ea66f171d54d0 (diff)
Add support for option merging (--generate-merge)
Diffstat (limited to 'cli/name-processor.cxx')
-rw-r--r--cli/name-processor.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/name-processor.cxx b/cli/name-processor.cxx
index c0f7179..d533a5b 100644
--- a/cli/name-processor.cxx
+++ b/cli/name-processor.cxx
@@ -85,7 +85,7 @@ namespace
virtual void
traverse (type& o)
{
- if (specifier && o.type ().name () != "bool")
+ if (gen_specifier && o.type ().name () != "bool")
{
semantics::context& oc (o.context ());
string const& base (oc.get<string> ("name"));
@@ -111,7 +111,7 @@ namespace
string const& base (oc.get<string> ("name"));
oc.set ("member", find_name (base + "_", set_));
- if (specifier && o.type ().name () != "bool")
+ if (gen_specifier && o.type ().name () != "bool")
{
string const& base (oc.get<string> ("specifier"));
oc.set ("specifier-member", find_name (base + "_", set_));