[cfe-dev] Language linkage of function type

Stephan Bergmann sbergman at redhat.com
Mon Jan 20 02:37:44 PST 2014


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.

Stephan



More information about the cfe-dev mailing list