[cfe-dev] case-insensitive #include warning

Bruno Cardoso Lopes via cfe-dev cfe-dev at lists.llvm.org
Wed Apr 20 11:27:20 PDT 2016


> (Relaying second-hand information here). On OS X, I think realpath and
> F_GETPATH actually return something from an xnu cache which may or may
> not match the case of the underlying file depending on recent
> operations.

That's right!

> Apparently for HFS filesystems, apparently fgetattrlist(ATTR_CMN_NAME)
> will work, but even that's not guaranteed on all case-insensitive
> filesystems (yet?).

I'm not sure about "guaranteed on all case-insensitive", but this
looks like the way to go on Darwin. Eric, could you take this into
consideration on your patches?

-- 
Bruno Cardoso Lopes
http://www.brunocardoso.cc



More information about the cfe-dev mailing list