mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-17 04:43:17 +08:00
* c-typeprint.c (c_type_print_cv_qualifier): Don't print `const'
qualifier on C++ references; all references are innately const.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2001-04-24 Jim Blandy <jimb@redhat.com>
|
||||||
|
|
||||||
|
* c-typeprint.c (c_type_print_cv_qualifier): Don't print `const'
|
||||||
|
qualifier on C++ references; all references are innately const.
|
||||||
|
|
||||||
2001-04-20 Mark Kettenis <kettenis@gnu.org>
|
2001-04-20 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
* event-top.h: Fix formatting.
|
* event-top.h: Fix formatting.
|
||||||
|
@ -293,7 +293,11 @@ c_type_print_cv_qualifier (struct type *type, struct ui_file *stream,
|
|||||||
{
|
{
|
||||||
int flag = 0;
|
int flag = 0;
|
||||||
|
|
||||||
if (TYPE_CONST (type))
|
/* We don't print `const' qualifiers for references --- since all
|
||||||
|
operators affect the thing referenced, not the reference itself,
|
||||||
|
every reference is `const'. */
|
||||||
|
if (TYPE_CONST (type)
|
||||||
|
&& TYPE_CODE (type) != TYPE_CODE_REF)
|
||||||
{
|
{
|
||||||
if (need_pre_space)
|
if (need_pre_space)
|
||||||
fprintf_filtered (stream, " ");
|
fprintf_filtered (stream, " ");
|
||||||
|
Reference in New Issue
Block a user