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


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


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