This patch implements the the sys::path::canonical function, which converts a path to its canonical form.
This function is needed for Clang's FileManager::getCanonicalName (there's a FIXME there) and the new
coverage mapping system.
Differential D4745
Support: add sys::path::canonical arphaman on Jul 31 2014, 1:10 PM. Authored by
Details
This patch implements the the sys::path::canonical function, which converts a path to its canonical form. This function is needed for Clang's FileManager::getCanonicalName (there's a FIXME there) and the new
Diff Detail Event TimelineComment Actions If this is implemented correctly as Duncan describes, we can probably use it to solve http://llvm.org/bugs/show_bug.cgi?id=20440. Comment Actions I guess than it would make sense to move it to sys::fs and use realpath internally for unix. Comment Actions Doug Gregor attempted to use realpath years ago, but it wasn't portable. I would find out why realpath got reverted before using it again. Comment Actions Well, his revert comment was: Rip out realpath() support. It's expensive, and often a bad idea, and I have another way to achieve the same goal. I'm not sure that portability is an issue here. Comment Actions As someone who was looking into http://llvm.org/bugs/show_bug.cgi?id=20440, some comments:
Now, as to 20440:
Comment Actions I'm abandoning this patch because there is another way to deal with my problem for code coverage, |