[cfe-commits] r154330 - /cfe/trunk/lib/Tooling/Tooling.cpp

Jordan Rose jediknil at belkadan.com
Mon Apr 9 11:31:14 PDT 2012


On Apr 9, 2012, at 14:18, Manuel Klimek wrote:

> On Mon, Apr 9, 2012 at 8:12 PM, Jordan Rose <jediknil at belkadan.com> wrote:
>> Test case? Even if you don't want to put symlinks in the repository, you could still override PWD manually using env. (Which is important because the test harness now wipes out PWD anyway.)
> 
> Good idea. The problem is how to get it to find a source file at the
> path afterwards without symlinks... Ideas?

Like clang-check's test, make a new directory containing a compile_commands.json, but then set PWD to the tests directory and use the test source file.

Or maybe make a new unit test instead -- then you don't need to run the tool at all.



More information about the cfe-commits mailing list