[cfe-commits] [PATCH] PR13824 warn if reinterpret_cast used for up/downcast

Alexander Zinenko ftynse at gmail.com
Tue Jan 22 14:58:05 PST 2013


Hello!

The attached patch addresses http://llvm.org/bugs/show_bug.cgi?id=13824. It
emits a warning if reinterpret_cast is actually used to perform an upcast
or a downcast which might lead to segfault in some cases.

Review please!

Suggestions for warning text structure and wording are welcome!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130123/9283d46b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 13824.patch
Type: application/octet-stream
Size: 22161 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130123/9283d46b/attachment.obj>


More information about the cfe-commits mailing list