From 3e10322425fa0a3cf6e125bc6f9d833b015cc9b5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 14 Sep 2010 10:52:55 +0200 Subject: Implement the --cli-namespace option --- cli/context.hxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'cli/context.hxx') 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 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&); -- cgit v1.1