[cfe-commits] r154330 - /cfe/trunk/lib/Tooling/Tooling.cpp
Manuel Klimek
klimek at google.com
Mon Apr 9 12:10:55 PDT 2012
Added a test in r154335.
On Mon, Apr 9, 2012 at 8:31 PM, Jordan Rose <jediknil at belkadan.com> wrote:
> 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