[cfe-commits] r50795 - /cfe/trunk/lib/Analysis/CFRefCount.cpp

Ted Kremenek kremenek at apple.com
Wed May 7 11:41:13 PDT 2008

On May 7, 2008, at 10:54 AM, Chris Lattner wrote:

> On May 7, 2008, at 10:45 AM, Steve Naroff wrote:
>> Ted,
>> VC++ doesn't seem to like strcasestr. I tried including <string>
>> explicitly and it didn't help.
>> Can you remove your dependency on this routine?
> strcasestr and stricmp are not portable, please use the helpers in  
> "llvm/ADT/StringExtras.h" if they do what you need or come up with  
> something else, thanks!
> -Chris

I implemented CStrInCStrNoCase in StringExtras.h, and updated  
CFRefCount.cpp to use this new function.

Steve: You will need to update both LLVM and clang to get this fix.

More information about the cfe-commits mailing list