[cfe-dev] New warning for mismatched include case

Jason Haslam jason.haslam at gmail.com
Fri Jul 27 12:40:20 PDT 2012


On Jul 27, 2012, at 12:34 PM, Joshua Warner <allpowerful32 at gmail.com> wrote:

> On windows, at least, there is an API that could help with this: just get a (windows) handle to the file via OpenFile / CreateFile, then query the handle's filename.  See http://msdn.microsoft.com/en-us/library/windows/desktop/aa366789(v=vs.85).aspx.

Thanks, I can test this when I have a chance.

> I suspect there are similar ways to do it for mac and linux.

As far as I know, there is no way to do this on unix. The trouble is that the mapping from filename to file (inode) is not one-to-one. There can be any number of links to the same file.

Jason

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120727/93166ef9/attachment.html>


More information about the cfe-dev mailing list