demangle.h (qualifier_list<Allocator>::decode_qualifiers(string_type&, string_type&, bool member_function_pointer_qualifiers): Always seperate the '[' of an array type with a space from what is left of it...
* include/bits/demangle.h (qualifier_list<Allocator>::decode_qualifiers(string_type&, string_type&, bool member_function_pointer_qualifiers): Always seperate the '[' of an array type with a space from what is left of it, except when that is the closing bracket of another array dimension. From-SVN: r73328
This commit is contained in:
parent
2215f7320e
commit
eb622d37cf
|
@ -1,3 +1,12 @@
|
|||
2003-11-07 Carlo Wood <carlo@alinoe.com>
|
||||
|
||||
* include/bits/demangle.h
|
||||
(qualifier_list<Allocator>::decode_qualifiers(string_type&,
|
||||
string_type&, bool member_function_pointer_qualifiers):
|
||||
Always seperate the '[' of an array type with a space from
|
||||
what is left of it, except when that is the closing bracket
|
||||
of another array dimension.
|
||||
|
||||
2003-11-07 Carlo Wood <carlo@alinoe.com>
|
||||
|
||||
* include/bits/demangle.h
|
||||
|
|
|
@ -1454,14 +1454,15 @@ namespace __gnu_cxx
|
|||
case 'A':
|
||||
{
|
||||
string_type index = (*iter).get_optional_type();
|
||||
if (++iter != M_qualifier_starts.rend()
|
||||
&& (*iter).first_qualifier() != 'A')
|
||||
if (++iter == M_qualifier_starts.rend())
|
||||
postfix = " [" + index + "]" + postfix;
|
||||
else if ((*iter).first_qualifier() == 'A')
|
||||
postfix = "[" + index + "]" + postfix;
|
||||
else
|
||||
{
|
||||
prefix += " (";
|
||||
postfix = ") [" + index + "]" + postfix;
|
||||
}
|
||||
else
|
||||
postfix = "[" + index + "]" + postfix;
|
||||
break;
|
||||
}
|
||||
case 'M':
|
||||
|
|
Loading…
Reference in New Issue