[PATCH] D33788: Return a canonical path from getClangResourcePath()

Bruno Cardoso Lopes via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 2 11:29:37 PDT 2017


bruno added a comment.



> I'm unaware of any other API that canonicalizes the path, which is what users of this API are going to expect.

You can also call `sys::path::remove_dots(Path, /*remove_dot_dot=*/true);`

> There's already a test case that covers this: Index/pch-from-libclang.c -- it was failing on OS X 10.6 for us. If you have a better test case in mind, I can certainly add it.

Works for me.


https://reviews.llvm.org/D33788





More information about the cfe-commits mailing list