[cfe-dev] case-insensitive #include warning

Tim Northover via cfe-dev cfe-dev at lists.llvm.org
Wed Apr 20 11:10:14 PDT 2016


> Any thoughts about this patch? Are folks here still interested? (Sending updated patch with --ignore-space-change.)

(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.

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

Cheers.

Tim.



More information about the cfe-dev mailing list