From 3fb35dc4bd8949880e5e6c6cb4825442c7d78b7b Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 12 Sep 2020 14:29:45 +0300 Subject: Regenerate options parsing code --- build2/b-options.cxx | 18 +++++++++--------- libbuild2/script/builtin-options.cxx | 12 ++++++------ 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/build2/b-options.cxx b/build2/b-options.cxx index 2bc65b3..373190a 100644 --- a/build2/b-options.cxx +++ b/build2/b-options.cxx @@ -570,11 +570,11 @@ namespace build2 } }; - template - struct parser > + template + struct parser > { static void - parse (std::set& c, bool& xs, scanner& s) + parse (std::set& c, bool& xs, scanner& s) { X x; bool dummy; @@ -584,17 +584,17 @@ namespace build2 } static void - merge (std::set& b, const std::set& a) + merge (std::set& b, const std::set& a) { b.insert (a.begin (), a.end ()); } }; - template - struct parser > + template + struct parser > { static void - parse (std::map& m, bool& xs, scanner& s) + parse (std::map& m, bool& xs, scanner& s) { const char* o (s.next ()); @@ -639,9 +639,9 @@ namespace build2 } static void - merge (std::map& b, const std::map& a) + merge (std::map& b, const std::map& a) { - for (typename std::map::const_iterator i (a.begin ()); + for (typename std::map::const_iterator i (a.begin ()); i != a.end (); ++i) b[i->first] = i->second; diff --git a/libbuild2/script/builtin-options.cxx b/libbuild2/script/builtin-options.cxx index bedbe64..abf325f 100644 --- a/libbuild2/script/builtin-options.cxx +++ b/libbuild2/script/builtin-options.cxx @@ -275,11 +275,11 @@ namespace build2 } }; - template - struct parser > + template + struct parser > { static void - parse (std::set& c, bool& xs, scanner& s) + parse (std::set& c, bool& xs, scanner& s) { X x; bool dummy; @@ -289,11 +289,11 @@ namespace build2 } }; - template - struct parser > + template + struct parser > { static void - parse (std::map& m, bool& xs, scanner& s) + parse (std::map& m, bool& xs, scanner& s) { const char* o (s.next ()); -- cgit v1.1