From d6fb1813ee522a81c053d4a76236218a2bcbce8a Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Sun, 9 Sep 2018 10:20:01 +0200 Subject: [PATCH] variant: indent better the generated code * data/variant.hh (b4_basic_symbol_constructor_declare) (b4_basic_symbol_constructor_define): here. --- data/variant.hh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/data/variant.hh b/data/variant.hh index a4db750a..a10d9447 100644 --- a/data/variant.hh +++ b/data/variant.hh @@ -333,8 +333,7 @@ b4_join(b4_symbol_if([$1], [has_type], # ----------------------------------- # Generate a constructor declaration for basic_symbol from given type. m4_define([b4_basic_symbol_constructor_declare], -[[ - basic_symbol (]b4_join( +[[ basic_symbol (]b4_join( [typename Base::kind_type t], b4_symbol_if([$1], [has_type], const b4_symbol([$1], [type])[& v]), b4_locations_if([const location_type& l]))[); @@ -344,8 +343,7 @@ m4_define([b4_basic_symbol_constructor_declare], # ---------------------------------- # Generate a constructor implementation for basic_symbol from given type. m4_define([b4_basic_symbol_constructor_define], -[[ - template +[[ template ]b4_parser_class_name[::basic_symbol::basic_symbol (]b4_join( [typename Base::kind_type t], b4_symbol_if([$1], [has_type], const b4_symbol([$1], [type])[& v]), @@ -354,6 +352,7 @@ m4_define([b4_basic_symbol_constructor_define], , value (v)])[]b4_locations_if([ , location (l)])[ {} + ]]) # b4_symbol_constructor_define