[cfe-commits] [PATCH] Warn on non-compatible returns from extern "C" functions

Aaron Ballman aaron at aaronballman.com
Sun Feb 5 09:31:42 PST 2012


MSVC will warn the user when a declared return type of an extern "C"
function is not C-compatible
(http://msdn.microsoft.com/en-us/library/1e02627y(v=vs.100).aspx).
This patch adds the same style of warning to clang, under the
-Wreturn-type group, with test cases.

Is there a better way for me to check whether a type is "C compatible?"

Thanks!

~Aaron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: extern_c.patch
Type: application/octet-stream
Size: 3145 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120205/63cc98a9/attachment.obj>


More information about the cfe-commits mailing list