mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
c++: use YY_NOEXCEPT where it helps
Suggested by Don Macpherson. <https://github.com/akimd/bison/issues/80> * data/skeletons/c++.m4, data/skeletons/glr2.cc, * data/skeletons/lalr1.cc, data/skeletons/stack.hh: Use YY_NOEXCEPT where it helps constructors.
This commit is contained in:
@@ -348,7 +348,7 @@ m4_define([b4_shared_declarations],
|
||||
/// Convert a scanner token kind \a t to a symbol kind.
|
||||
/// In theory \a t should be a token_kind_type, but character literals
|
||||
/// are valid, yet not members of the token_kind_type enum.
|
||||
static symbol_kind_type yytranslate_ (int t);
|
||||
static symbol_kind_type yytranslate_ (int t) YY_NOEXCEPT;
|
||||
|
||||
]b4_parse_error_bmatch(
|
||||
[simple],
|
||||
@@ -3136,13 +3136,13 @@ b4_dollar_popdef])[]dnl
|
||||
}
|
||||
|
||||
static bool
|
||||
yy_is_shift_action (int yyaction)
|
||||
yy_is_shift_action (int yyaction) YY_NOEXCEPT
|
||||
{
|
||||
return 0 < yyaction;
|
||||
}
|
||||
|
||||
static bool
|
||||
yy_is_error_action (int yyaction)
|
||||
yy_is_error_action (int yyaction) YY_NOEXCEPT
|
||||
{
|
||||
return yyaction == 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user