[cfe-commits] r63949 - /cfe/trunk/include/clang/AST/ASTContext.h

Sebastian Redl sebastian.redl at getdesigned.at
Fri Feb 6 12:11:41 PST 2009


Ted Kremenek wrote:
> Author: kremenek
> Date: Fri Feb  6 13:10:16 2009
> New Revision: 63949
>
> URL: http://llvm.org/viewvc/llvm-project?rev=63949&view=rev
> Log:
> Added special versions of new[]/delete[] to complement the new/delete which uses ASTContext's allocator.  Updated some comments along the way.
>
> +/// Please note that you cannot use delete on the pointer; it must be
> +/// deallocated using an explicit destructor call followed by
> +/// @c Context.getAllocator().Deallocate(Ptr)
>   
Hi Ted,

While you're at it, you should also update this comment, because you
should now use Context.Deallocate() directly.

Sebastian



More information about the cfe-commits mailing list