@@ -30,6 +30,8 @@ def normalize(self, type_str):
3030
3131 def replace_basic_string (self , cls_name ):
3232
33+ print ("replace_basic_string START" , cls_name )
34+
3335 # Take the lists of all possible string variations
3436 # and clean them up by replacing ::std by std.
3537 str_eq = [
@@ -49,6 +51,8 @@ def replace_basic_string(self, cls_name):
4951 for lname in long_names :
5052 new_name = new_name .replace (lname , short_name )
5153
54+ print ("replace_basic_string DONE" , new_name )
55+
5256 return new_name
5357
5458 def decorated_call_prefix (self , cls_name , text , doit ):
@@ -99,13 +103,14 @@ def erase_recursive(self, cls_name):
99103 return self .no_end_const (cls_name )
100104
101105 def erase_allocator (self , cls_name , default_allocator = 'std::allocator' ):
106+ print ("erase_allocator START" , cls_name )
102107 cls_name = self .replace_basic_string (cls_name )
103108 c_name , c_args = templates .split (cls_name )
104109 if len (c_args ) != 2 :
105110 return
106111 value_type = c_args [0 ]
107112 tmpl = string .Template (
108- "$container<$value_type, $allocator<$value_type>>" )
113+ "$container<$value_type,$allocator<$value_type>>" )
109114 tmpl = tmpl .substitute (
110115 container = c_name ,
111116 value_type = value_type ,
@@ -525,6 +530,7 @@ def remove_defaults(self, type_or_string):
525530 name = self .class_declaration (type_or_string ).name
526531 if not self .remove_defaults_impl :
527532 return name
533+ print ("remove_defaults" , name )
528534 no_defaults = self .remove_defaults_impl (name )
529535 if not no_defaults :
530536 return name
0 commit comments