From 381f872a76f6ad8fc5caee172e903f08dd652547 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 29 Oct 2015 12:40:46 +0200 Subject: Add parsing support for scope-level documentation --- cli/parser.hxx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'cli/parser.hxx') diff --git a/cli/parser.hxx b/cli/parser.hxx index 29f4b22..e3b1fee 100644 --- a/cli/parser.hxx +++ b/cli/parser.hxx @@ -9,7 +9,8 @@ #include #include #include -#include // std::auto_ptr +#include // auto_ptr +#include // size_t #include #include "semantics/elements.hxx" @@ -43,6 +44,9 @@ private: decl (token&); void + scope_doc (token&); + + void namespace_def (); void @@ -51,6 +55,9 @@ private: bool option_def (token&); + std::string + doc_string (token&); + bool qualified_name (token&, std::string& name); @@ -73,6 +80,8 @@ private: semantics::cli_unit* cur_; semantics::scope* scope_; + std::size_t doc_count_; // Scope doc counter, see scope_doc() for details. + typedef std::map include_map; include_map include_map_; }; -- cgit v1.1