summaryrefslogtreecommitdiff
path: root/cli/context.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-09-14 10:52:55 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-09-14 10:52:55 +0200
commit3e10322425fa0a3cf6e125bc6f9d833b015cc9b5 (patch)
tree3ee842d8bff4ba1d2aaf22ed0936a77d60038509 /cli/context.hxx
parent4433307f8c0c6cfbcabe3316e98b9699223c97d3 (diff)
Implement the --cli-namespace option
Diffstat (limited to 'cli/context.hxx')
-rw-r--r--cli/context.hxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/cli/context.hxx b/cli/context.hxx
index 1f2625d..ed0e058 100644
--- a/cli/context.hxx
+++ b/cli/context.hxx
@@ -45,6 +45,7 @@ public:
string const& inl;
string const& opt_prefix;
string const& opt_sep;
+ string const& cli;
typedef std::map<string, string> reserved_name_map_type;
reserved_name_map_type const& reserved_name_map;
@@ -56,6 +57,7 @@ private:
struct data
{
string inl_;
+ string cli_;
keyword_set_type keyword_set_;
};
@@ -116,6 +118,15 @@ public:
string
fq_name (semantics::nameable& n, bool cxx_name = true);
+ // Open/close cli namespace.
+ //
+public:
+ void
+ cli_open ();
+
+ void
+ cli_close ();
+
public:
context (std::ostream&, semantics::cli_unit&, options_type const&);