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

Ted Kremenek kremenek at apple.com
Fri Feb 6 13:14:38 PST 2009


On Feb 6, 2009, at 12:11 PM, Sebastian Redl wrote:

> 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

Will do.  Thanks for pointing this out!



More information about the cfe-commits mailing list