This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [3/3] RFC: tag name completion


>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:

Pedro> I'm not that much familiar with this part of the code.  I'm just
Pedro> wondering about struct vs class.  GDB treats both mostly
Pedro> interchangeably, e.g., with "struct ABC {};", ptype "class ABC"
Pedro> will find and print the struct.  Would "class A<tab>" still
Pedro> complete to "class ABC" with this patch?

It will work because:

#define TYPE_CODE_CLASS TYPE_CODE_STRUCT

I think we should probably just drop this and always use TYPE_CODE_STRUCT.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]