On Dec 17, 2009, at 8:45 PM, John Thompson wrote:

> > Second, should this really go in InitHeaderSearch?  Would it make more 
> > sense to put in the getDirectory call itself?
> Yes.  The enclosed is probably better.

Works for me, please commit.  If you feel crazy, it would be nice to change 
getDirectory to take a stringref instead of two pointers :)

-Chris

> -John
> On Thu, Dec 17, 2009 at 2:41 PM, Chris Lattner <[email protected]> wrote:
> 
> On Dec 17, 2009, at 1:08 PM, John Thompson wrote:
> 
> > The stat function on Windows doesn't like a path with a trailing separator 
> > like:  ../../
> > This patch works around thant, but I don't know if it's the optimal 
> > solution.
> 
> Two issues.  First, that idiom for using endswith currently generates gross 
> code.  We should fix this (http://llvm.org/bugs/show_bug.cgi?id=5822), but 
> until then, please just check MappedPath.back() == '/' or something.
> 
> Second, should this really go in InitHeaderSearch?  Would it make more sense 
> to put in the getDirectory call itself?
> 
> -Chris
> 
> 
> 
> -- 
> John Thompson
> [email protected]
> 
> <includetrailingsep2.patch>_______________________________________________
> cfe-commits mailing list
> [email protected]
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to