[cfe-dev] Check improper delete array
章磊
ioripolo at gmail.com
Mon Nov 21 01:10:09 PST 2011
Hi Clang,
The attached patch adds a Checker to clang, it checks improper uses of
delete operator(now using delete instead of delete[] to delete an array). I
add poststmt check to VisitCXXNewExpr and prestmt check to
VisitCXXDeleteExpr.
I will appreciate it if there are any advice about this patch.
--
Best regards!
Lei Zhang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20111121/90dc4e0f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Delete.patch
Type: application/octet-stream
Size: 5328 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20111121/90dc4e0f/attachment.obj>
More information about the cfe-dev
mailing list