[RFA] Token cleanup in c-exp.y
Tom Tromey
tromey@redhat.com
Tue Aug 25 18:41:00 GMT 2009
>>>>> "Keith" == Keith Seitz <keiths@redhat.com> writes:
Tom> The last field should be 1 here, and then the tokentab2 and tokentab3
Tom> logic in yylex needs the same cxx_only treatment as ident_tokens.
Keith> Yes, indeed. I've fixed that
Thanks.
Tom> I suppose that the "::" operator also needs to be C++-only.
Keith> I don't think we can do that. "::" is also used by gdb for
Keith> non-language constructs like filename::function and
Keith> function::variable. There are several scattered tests on this already.
Thanks for looking into this and adding the comment.
Keith> New patch attached.
This is ok.
Tom
More information about the Gdb-patches
mailing list