[cfe-commits] r150128 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaDecl.cpp test/SemaCXX/function-extern-c.cpp

Aaron Ballman aaron at aaronballman.com
Wed Feb 8 18:22:25 PST 2012


On Wed, Feb 8, 2012 at 8:17 PM, Chandler Carruth <chandlerc at google.com> wrote:
> On Wed, Feb 8, 2012 at 4:12 PM, Matt Beaumont-Gay <matthewbg at google.com>
> wrote:
>>
>> Hi Aaron,
>>
>> The documentation for the corresponding MSVC warning states:
>>
>> "This is legal if:
>> * All calls to this function occur from C++.
>> * The definition of the function is in C++."
>>
>> For code which triggers the new warning, but is legal per those
>> criteria, how does one silence the warning?
>
>
> I'm confused, why does removing extern "C" not work? If no one calls or
> defines the function from C, why mangle the name that way?

Or this.  ;-)

~Aaron



More information about the cfe-commits mailing list