[cfe-dev] Language linkage of function type

Rafael EspĂ­ndola rafael.espindola at gmail.com
Mon Jan 20 07:38:51 PST 2014


On 20 January 2014 02:37, Stephan Bergmann <sbergman at redhat.com> wrote:
> I am wondering why clang::FunctionType, unlike clang::FunctionDecl, does not
> offer a function to determine its clang::LanguageLinkage.
>
> I am asking because in the C++ code
>
>   extern "C" { static void f(); }
>
> the FunctionDecl representing f has isExternC() return false (as the name of
> function f has internal, not C language linkage), but the function's type
> has C language linkage and I need to know about that in a plugin.

I think it is just because it is not implemented yet. If I remember
correctly, we only track language linkage of decls.

Cheers,
Rafael



More information about the cfe-dev mailing list