summaryrefslogtreecommitdiff
path: root/cli/context.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-06-02 17:22:12 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-06-02 17:22:12 +0200
commited60746355044dd39acd82b8f42c4d9886914567 (patch)
treea958825cb9bca8960eafb41c373d91e22ca9e4ed /cli/context.hxx
parent62166bfe7031522bd851eb5d7047a19182e24a45 (diff)
Implement generation of specifier functions (--generate-specifier)
These functions determine whether the option was specified on the command line. New test: specifier.
Diffstat (limited to 'cli/context.hxx')
-rw-r--r--cli/context.hxx13
1 files changed, 13 insertions, 0 deletions
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<string> ("specifier");
+ }
+
+ static string const&
emember (semantics::nameable& n)
{
return n.context ().get<string> ("member");
}
+ static string const&
+ especifier_member (semantics::nameable& n)
+ {
+ return n.context ().get<string> ("specifier-member");
+ }
+
public:
// Return fully-qualified C++ or CLI name.
//