[cfe-dev] Ownership attribute for malloc etc. checking
Andrew McGregor
andrewmcgr at gmail.com
Mon Jul 12 21:12:01 PDT 2010
Yes, I did of course mean that :-)
However... never mind, I've sorted that case out myself. Revised patch
attached.
On Tue, Jul 13, 2010 at 11:52 AM, Alexei Svitkine <alexei.svitkine at gmail.com
> wrote:
> > The remaining issue is still that void foo(void ** it) {it=malloc(42);}
> warns.
>
> Do you mean void foo(void ** it) {*it=malloc(42);} ?
>
> Because the one you mentioned should warn. ;)
>
> -Alexei
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100713/648d652c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-ownership-pointers2.patch
Type: text/x-patch
Size: 32785 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100713/648d652c/attachment.bin>
More information about the cfe-dev
mailing list