parsers: fix minor stylistic issues

* data/skeletons/variant.hh (b4_token_constructor_declare): Remove,
unused since the previous commit.
Fix indentation issues.
* data/skeletons/c++.m4: Fix indentation issues.
This commit is contained in:
Akim Demaille
2018-12-27 06:39:41 +01:00
parent 7938ab53ff
commit 0dc44adbf6
3 changed files with 6 additions and 18 deletions

View File

@@ -275,8 +275,8 @@ m4_define([b4_symbol_type_define],
/// Constructor for symbols with semantic value.
basic_symbol (typename Base::kind_type t,
YY_RVREF (semantic_type) v]b4_locations_if([,
YY_RVREF (location_type) l])[);]])[
YY_RVREF (location_type) l])[);
]])[
/// Destroy the symbol.
~basic_symbol ();
@@ -540,7 +540,7 @@ m4_define([b4_yytranslate_define],
const token_number_type
translate_table[] =
{
]b4_translate[
]b4_translate[
};
const unsigned user_token_number_max_ = ]b4_user_token_number_max[;
const token_number_type undef_token_ = ]b4_undef_token_number[;

View File

@@ -419,15 +419,6 @@ m4_define([_b4_token_constructor_define],
]])])
# b4_token_constructor_declare
# ----------------------------
# Declare token constructors. Use at class-level.
m4_define([b4_token_constructor_declare],
[ // Symbol constructors declarations.
b4_symbol_foreach([_b4_token_maker_declare])])
# b4_basic_symbol_constructor_define(SYMBOL-NUM)
# ----------------------------------------------
# Generate a constructor for basic_symbol from given type.
@@ -458,5 +449,5 @@ m4_define([b4_basic_symbol_constructor_define],
# ---------------------------
# Define the overloaded versions of make_symbol for all the value types.
m4_define([b4_token_constructor_define],
[ // Implementation of make_symbol for each symbol type.
[ // Implementation of make_symbol for each symbol type.
b4_symbol_foreach([_b4_token_maker_define])])