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

Chandler Carruth chandlerc at google.com
Wed Feb 8 18:17:56 PST 2012


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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120208/28a1d907/attachment.html>


More information about the cfe-commits mailing list