This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [3/3] RFC: tag name completion
- From: Pedro Alves <palves at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 07 Dec 2012 22:12:35 +0000
- Subject: Re: [3/3] RFC: tag name completion
- References: <87obiqlrv7.fsf@fleche.redhat.com>
On 11/21/2012 06:42 PM, Tom Tromey wrote:
> This implements tag name completion in the C parser.
>
> The basic idea is simple: if the user enters "struct X<TAB>", then only
> struct tags starting with "X" should be considered. (And likewise for
> class, enum, and union.)
I think this is a good idea.
I'm not that much familiar with this part of the code. I'm just wondering about
struct vs class. GDB treats both mostly interchangeably, e.g.,
with "struct ABC {};", ptype "class ABC" will find and print the struct.
Would "class A<tab>" still complete to "class ABC" with this patch?
--
Pedro Alves