[cfe-dev] Getting absolute path

Chris Lattner clattner at apple.com
Mon Sep 27 09:12:12 PDT 2010


On Sep 27, 2010, at 12:56 AM, Pisit Makpaisit wrote:

> I want to get file path in clang and I use getDir() in FileEntry. The result is I get relative path of that file. How can I get the file's alsolute path?

If your system supports it, the BSD "realpath" function will do it.

-Chris



More information about the cfe-dev mailing list