Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Tom Tromey <tromey@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [3/3] RFC: tag name completion
Date: Fri, 07 Dec 2012 22:12:00 -0000	[thread overview]
Message-ID: <50C269D3.10306@redhat.com> (raw)
In-Reply-To: <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


  parent reply	other threads:[~2012-12-07 22:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-21 18:43 Tom Tromey
2012-12-07 20:06 ` Tom Tromey
2012-12-07 22:12 ` Pedro Alves [this message]
2012-12-10 15:08   ` Tom Tromey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50C269D3.10306@redhat.com \
    --to=palves@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=tromey@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox