From ed60746355044dd39acd82b8f42c4d9886914567 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 2 Jun 2010 17:22:12 +0200 Subject: Implement generation of specifier functions (--generate-specifier) These functions determine whether the option was specified on the command line. New test: specifier. --- cli/context.hxx | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'cli/context.hxx') diff --git a/cli/context.hxx b/cli/context.hxx index 00cbcde..1f2625d 100644 --- a/cli/context.hxx +++ b/cli/context.hxx @@ -39,6 +39,7 @@ public: options_type const& options; bool modifier; + bool specifier; bool usage; string const& inl; @@ -92,11 +93,23 @@ public: } static string const& + especifier (semantics::nameable& n) + { + return n.context ().get ("specifier"); + } + + static string const& emember (semantics::nameable& n) { return n.context ().get ("member"); } + static string const& + especifier_member (semantics::nameable& n) + { + return n.context ().get ("specifier-member"); + } + public: // Return fully-qualified C++ or CLI name. // -- cgit v1.1