@@ -308,7 +308,7 @@ m4_define([b4_symbol_type_define],
308
308
typedef Base super_type;
309
309
310
310
/// Default constructor.
311
- basic_symbol ()
311
+ basic_symbol () YY_NOEXCEPT
312
312
: value ()] b4_locations_if([
313
313
, location ()] )[
314
314
{}
@@ -437,16 +437,22 @@ m4_define([b4_symbol_type_define],
437
437
/// Type access provider for token (enum) based symbols.
438
438
struct by_kind
439
439
{
440
+ /// The symbol kind as needed by the constructor.
441
+ typedef token_kind_type kind_type;
442
+
440
443
/// Default constructor.
441
- by_kind ();
444
+ by_kind () YY_NOEXCEPT ;
442
445
443
446
#if 201103L <= YY_CPLUSPLUS
444
447
/// Move constructor.
445
- by_kind (by_kind&& that);
448
+ by_kind (by_kind&& that) YY_NOEXCEPT ;
446
449
#endif
447
450
448
451
/// Copy constructor.
449
- by_kind (const by_kind& that);
452
+ by_kind (const by_kind& that) YY_NOEXCEPT;
453
+
454
+ /// Constructor from (external) token numbers.
455
+ by_kind (kind_type t) YY_NOEXCEPT;
450
456
451
457
] b4_glr2_cc_if([ [
452
458
/// Copy assignment.
@@ -456,12 +462,6 @@ m4_define([b4_symbol_type_define],
456
462
by_kind& operator= (by_kind&& that);
457
463
] ] )[
458
464
459
- /// The symbol kind as needed by the constructor.
460
- typedef token_kind_type kind_type;
461
-
462
- /// Constructor from (external) token numbers.
463
- by_kind (kind_type t);
464
-
465
465
/// Record that this symbol is empty.
466
466
void clear () YY_NOEXCEPT;
467
467
@@ -490,7 +490,7 @@ m4_define([b4_symbol_type_define],
490
490
typedef basic_symbol<by_kind> super_type;
491
491
492
492
/// Empty symbol.
493
- symbol_type () {}
493
+ symbol_type () YY_NOEXCEPT {}
494
494
495
495
/// Constructor for valueless symbols, and symbols from each type.
496
496
] b4_type_foreach([ _b4_symbol_constructor_define] )dnl
@@ -564,23 +564,23 @@ m4_define([b4_public_types_define],
564
564
}
565
565
566
566
// by_kind.
567
- ] b4_inline([ $1 ] )b4_parser_class[ ::by_kind::by_kind ()
567
+ ] b4_inline([ $1 ] )b4_parser_class[ ::by_kind::by_kind () YY_NOEXCEPT
568
568
: kind_ (] b4_symbol(empty, kind)[ )
569
569
{}
570
570
571
571
#if 201103L <= YY_CPLUSPLUS
572
- ] b4_inline([ $1 ] )b4_parser_class[ ::by_kind::by_kind (by_kind&& that)
572
+ ] b4_inline([ $1 ] )b4_parser_class[ ::by_kind::by_kind (by_kind&& that) YY_NOEXCEPT
573
573
: kind_ (that.kind_)
574
574
{
575
575
that.clear ();
576
576
}
577
577
#endif
578
578
579
- ] b4_inline([ $1 ] )b4_parser_class[ ::by_kind::by_kind (const by_kind& that)
579
+ ] b4_inline([ $1 ] )b4_parser_class[ ::by_kind::by_kind (const by_kind& that) YY_NOEXCEPT
580
580
: kind_ (that.kind_)
581
581
{}
582
582
583
- ] b4_inline([ $1 ] )b4_parser_class[ ::by_kind::by_kind (token_kind_type t)
583
+ ] b4_inline([ $1 ] )b4_parser_class[ ::by_kind::by_kind (token_kind_type t) YY_NOEXCEPT
584
584
: kind_ (yytranslate_ (t))
585
585
{}
586
586
@@ -643,7 +643,7 @@ m4_define([b4_token_constructor_define], [])
643
643
# sometimes in the cc file.
644
644
m4_define ( [ b4_yytranslate_define] ,
645
645
[ b4_inline([ $1 ] )b4_parser_class[ ::symbol_kind_type
646
- ] b4_parser_class[ ::yytranslate_ (int t)
646
+ ] b4_parser_class[ ::yytranslate_ (int t) YY_NOEXCEPT
647
647
{
648
648
] b4_api_token_raw_if(
649
649
[ [ return static_cast<symbol_kind_type> (t);] ] ,
0 commit comments