[cfe-commits] r48541 - /cfe/trunk/include/clang/Rewrite/Rewriter.h

Ted Kremenek kremenek at apple.com
Wed Mar 19 09:32:05 PDT 2008


On Mar 19, 2008, at 9:25 AM, Chris Lattner wrote:

>
> On Mar 19, 2008, at 1:00 AM, Ted Kremenek wrote:
>
>> Author: kremenek
>> Date: Wed Mar 19 03:00:50 2008
>> New Revision: 48541
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=48541&view=rev
>> Log:
>> Integrated some of Chris's comments; check for an empty string in  
>> InsertStrXXX()
>> before descending into the bowels of the Rewriter.
>
> Thanks, but the problem is that c_str() is slow :), please switch to  
> &S[0] (which is the thing that doesn't work if S is empty)
>

Ah. Done.




More information about the cfe-commits mailing list