summaryrefslogtreecommitdiffstats
path: root/src/bin/netconf
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2018-11-27 14:45:23 +0100
committerFrancis Dupont <fdupont@isc.org>2018-11-27 14:45:23 +0100
commit9a427e9e3daba2061aa5b44a5a25d7c5fa3305b6 (patch)
tree26823beabe733369b19730f81084ae0e2957ca8b /src/bin/netconf
parent[#275, !130] reverted unnecessary changes in .hh files (diff)
downloadkea-9a427e9e3daba2061aa5b44a5a25d7c5fa3305b6.tar.xz
kea-9a427e9e3daba2061aa5b44a5a25d7c5fa3305b6.zip
[master] Regen flex/bison (with bison 3.2.2)136-add-global-host-reservation-examples_base
Diffstat (limited to 'src/bin/netconf')
-rw-r--r--src/bin/netconf/location.hh2
-rw-r--r--src/bin/netconf/netconf_parser.cc6
-rw-r--r--src/bin/netconf/netconf_parser.h151
-rw-r--r--src/bin/netconf/position.hh2
-rw-r--r--src/bin/netconf/stack.hh2
5 files changed, 120 insertions, 43 deletions
diff --git a/src/bin/netconf/location.hh b/src/bin/netconf/location.hh
index b7fe430ae0..512cf3f889 100644
--- a/src/bin/netconf/location.hh
+++ b/src/bin/netconf/location.hh
@@ -1,4 +1,4 @@
-// Generated 201811172153
+// Generated 201811271344
// A Bison parser, made by GNU Bison 3.2.1.
// Locations for Bison parsers in C++
diff --git a/src/bin/netconf/netconf_parser.cc b/src/bin/netconf/netconf_parser.cc
index c2e7950403..823c6c7431 100644
--- a/src/bin/netconf/netconf_parser.cc
+++ b/src/bin/netconf/netconf_parser.cc
@@ -271,7 +271,7 @@ namespace isc { namespace netconf {
break;
}
-#if defined __cplusplus && 201103L <= __cplusplus
+#if 201103L <= YY_CPLUSPLUS
// that is emptied.
that.state = empty_state;
#endif
@@ -312,7 +312,7 @@ namespace isc { namespace netconf {
that.type = empty_symbol;
}
-#if !defined __cplusplus || __cplusplus < 201103L
+#if YY_CPLUSPLUS < 201103L
NetconfParser::stack_symbol_type&
NetconfParser::stack_symbol_type::operator= (stack_symbol_type& that)
{
@@ -446,7 +446,7 @@ namespace isc { namespace netconf {
void
NetconfParser::yypush_ (const char* m, state_type s, YY_MOVE_REF (symbol_type) sym)
{
-#if defined __cplusplus && 201103L <= __cplusplus
+#if 201103L <= YY_CPLUSPLUS
yypush_ (m, stack_symbol_type (s, std::move (sym)));
#else
stack_symbol_type ss (s, sym);
diff --git a/src/bin/netconf/netconf_parser.h b/src/bin/netconf/netconf_parser.h
index 42d5ac211b..30de6c1faa 100644
--- a/src/bin/netconf/netconf_parser.h
+++ b/src/bin/netconf/netconf_parser.h
@@ -64,8 +64,14 @@ using namespace std;
# include <string>
# include <vector>
+#if defined __cplusplus
+# define YY_CPLUSPLUS __cplusplus
+#else
+# define YY_CPLUSPLUS 199711L
+#endif
+
// Support move semantics when possible.
-#if defined __cplusplus && 201103L <= __cplusplus
+#if 201103L <= YY_CPLUSPLUS
# define YY_MOVE std::move
# define YY_MOVE_OR_COPY move
# define YY_MOVE_REF(Type) Type&&
@@ -157,7 +163,7 @@ using namespace std;
#line 14 "netconf_parser.yy" // lalr1.cc:404
namespace isc { namespace netconf {
-#line 161 "netconf_parser.h" // lalr1.cc:404
+#line 167 "netconf_parser.h" // lalr1.cc:404
/// A stack with random access from its top.
template <typename T, typename S = std::vector<T> >
@@ -323,7 +329,7 @@ namespace isc { namespace netconf {
return *new (yyas_<T> ()) T ();
}
-# if defined __cplusplus && 201103L <= __cplusplus
+# if 201103L <= YY_CPLUSPLUS
/// Instantiate a \a T in here from \a t.
template <typename T, typename U>
T&
@@ -411,7 +417,7 @@ namespace isc { namespace netconf {
void
move (self_type& other)
{
-# if defined __cplusplus && 201103L <= __cplusplus
+# if 201103L <= YY_CPLUSPLUS
emplace<T> (std::move (other.as<T> ()));
# else
emplace<T> ();
@@ -420,7 +426,7 @@ namespace isc { namespace netconf {
other.destroy<T> ();
}
-# if defined __cplusplus && 201103L <= __cplusplus
+# if 201103L <= YY_CPLUSPLUS
/// Move the content of \a other to this.
template <typename T>
void
@@ -612,12 +618,36 @@ namespace isc { namespace netconf {
/// Constructor for valueless symbols, and symbols from each type.
- basic_symbol (typename Base::kind_type t, YY_RVREF (location_type) l);
- basic_symbol (typename Base::kind_type t, YY_RVREF (ElementPtr) v, YY_RVREF (location_type) l);
- basic_symbol (typename Base::kind_type t, YY_RVREF (bool) v, YY_RVREF (location_type) l);
- basic_symbol (typename Base::kind_type t, YY_RVREF (double) v, YY_RVREF (location_type) l);
- basic_symbol (typename Base::kind_type t, YY_RVREF (int64_t) v, YY_RVREF (location_type) l);
- basic_symbol (typename Base::kind_type t, YY_RVREF (std::string) v, YY_RVREF (location_type) l);
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, ElementPtr&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const ElementPtr& v, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, bool&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const bool& v, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, double&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const double& v, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, int64_t&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const int64_t& v, const location_type& l);
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ basic_symbol (typename Base::kind_type t, std::string&& v, location_type&& l);
+#else
+ basic_symbol (typename Base::kind_type t, const std::string& v, const location_type& l);
+#endif
/// Destroy the symbol.
@@ -639,7 +669,7 @@ namespace isc { namespace netconf {
location_type location;
private:
-#if !defined __cplusplus || __cplusplus < 201103L
+#if YY_CPLUSPLUS < 201103L
/// Assignment operator.
basic_symbol& operator= (const basic_symbol& other);
#endif
@@ -1052,7 +1082,7 @@ namespace isc { namespace netconf {
stack_symbol_type (YY_RVREF (stack_symbol_type) that);
/// Steal the contents from \a sym to build this.
stack_symbol_type (state_type s, YY_MOVE_REF (symbol_type) sym);
-#if !defined __cplusplus || __cplusplus < 201103L
+#if YY_CPLUSPLUS < 201103L
/// Assignment, needed by push_back by some old implementations.
/// Moves the contents of that.
stack_symbol_type& operator= (stack_symbol_type& that);
@@ -1203,47 +1233,94 @@ namespace isc { namespace netconf {
// Implementation of basic_symbol constructor for each type.
+# if 201103L <= YY_CPLUSPLUS
template <typename Base>
- NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (location_type) l)
+ NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, location_type&& l)
: Base (t)
- , location (YY_MOVE (l))
+ , location (std::move (l))
{}
-
+#else
template <typename Base>
- NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (ElementPtr) v, YY_RVREF (location_type) l)
+ NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const location_type& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , location (l)
{}
-
+#endif
+# if 201103L <= YY_CPLUSPLUS
template <typename Base>
- NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (bool) v, YY_RVREF (location_type) l)
+ NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, ElementPtr&& v, location_type&& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , value (std::move (v))
+ , location (std::move (l))
{}
-
+#else
template <typename Base>
- NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (double) v, YY_RVREF (location_type) l)
+ NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const ElementPtr& v, const location_type& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , value (v)
+ , location (l)
{}
-
+#endif
+# if 201103L <= YY_CPLUSPLUS
template <typename Base>
- NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (int64_t) v, YY_RVREF (location_type) l)
+ NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, bool&& v, location_type&& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , value (std::move (v))
+ , location (std::move (l))
{}
-
+#else
template <typename Base>
- NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, YY_RVREF (std::string) v, YY_RVREF (location_type) l)
+ NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const bool& v, const location_type& l)
: Base (t)
- , value (YY_MOVE (v))
- , location (YY_MOVE (l))
+ , value (v)
+ , location (l)
{}
-
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ template <typename Base>
+ NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, double&& v, location_type&& l)
+ : Base (t)
+ , value (std::move (v))
+ , location (std::move (l))
+ {}
+#else
+ template <typename Base>
+ NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const double& v, const location_type& l)
+ : Base (t)
+ , value (v)
+ , location (l)
+ {}
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ template <typename Base>
+ NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, int64_t&& v, location_type&& l)
+ : Base (t)
+ , value (std::move (v))
+ , location (std::move (l))
+ {}
+#else
+ template <typename Base>
+ NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const int64_t& v, const location_type& l)
+ : Base (t)
+ , value (v)
+ , location (l)
+ {}
+#endif
+# if 201103L <= YY_CPLUSPLUS
+ template <typename Base>
+ NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, std::string&& v, location_type&& l)
+ : Base (t)
+ , value (std::move (v))
+ , location (std::move (l))
+ {}
+#else
+ template <typename Base>
+ NetconfParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const std::string& v, const location_type& l)
+ : Base (t)
+ , value (v)
+ , location (l)
+ {}
+#endif
template <typename Base>
@@ -1731,7 +1808,7 @@ namespace isc { namespace netconf {
#line 14 "netconf_parser.yy" // lalr1.cc:404
} } // isc::netconf
-#line 1735 "netconf_parser.h" // lalr1.cc:404
+#line 1812 "netconf_parser.h" // lalr1.cc:404
diff --git a/src/bin/netconf/position.hh b/src/bin/netconf/position.hh
index 9f3dfeedf8..5a854e9334 100644
--- a/src/bin/netconf/position.hh
+++ b/src/bin/netconf/position.hh
@@ -1,4 +1,4 @@
-// Generated 201811172153
+// Generated 201811271344
// A Bison parser, made by GNU Bison 3.2.1.
// Starting with Bison 3.2, this file is useless: the structure it
diff --git a/src/bin/netconf/stack.hh b/src/bin/netconf/stack.hh
index c0ca3f35b5..4fcda222f5 100644
--- a/src/bin/netconf/stack.hh
+++ b/src/bin/netconf/stack.hh
@@ -1,4 +1,4 @@
-// Generated 201811172153
+// Generated 201811271344
// A Bison parser, made by GNU Bison 3.2.1.
// Starting with Bison 3.2, this file is useless: the structure it