Hi,

Ian Lance Taylor <i...@google.com> writes:

> ludovic.cour...@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’.

Reply via email to