This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: âxref_tagâ lacks a public declaration
- From: ludovic dot courtes at inria dot fr (Ludovic Courtès)
- To: Ian Lance Taylor <iant at google dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 17 Mar 2011 10:07:08 +0100
- Subject: Re: âxref_tagâ lacks a public declaration
- References: <87y64f9zq6.fsf@inria.fr> <mcraagvt9kh.fsf@google.com>
Hi,
Ian Lance Taylor <iant@google.com> writes:
> ludovic.courtes@inria.fr (Ludovic CourtÃs) writes:
>
>> âc-common.hâ lacks this declaration:
>>
>> extern tree xref_tag (enum tree_code code, tree name);
>>
>> AFAICS it makes it impossible for plug-ins to lookup a struct/union/enum
>> tag.
>>
>> Unfortunately, <cp/cp-tree.h> declares a different âxref_tagâ function,
>> so it seems that the above declaration cannot just be added to
>> âc-common.hâ.
>>
>> Any ideas how to solve this?
>
> Any plugin that uses that function is going to be inherently specific to
> the C frontend, and will not work with C++.
BTW, what equivalent function would work with both C and C++?
Thanks,
Ludoâ.