[cfe-dev] Testing new ClangTool

Shraiysh Vaishay via cfe-dev cfe-dev at lists.llvm.org
Sat Nov 23 20:18:14 PST 2019


Hi Marcos,

Recently I was working on a similar thing. GTest works pretty well for out
of source tools on Clang. The runToolOnCode from Tooling.h can directly be
used to test your code on an input string program. Hope this helps.

Regards
Shraiysh Vaishay

On Sun, Nov 24, 2019, 9:39 AM Marcos Horro Varela via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> Hello all,
>
> I am new to this community so I have some doubts if this question can be
> asked here but, when you develop a new clang tool, is there any preferred
> testing framework/methodology?
> Many thanks.
>
> Kind regards,
>
> --
>
> Marcos Horro
>
> PhD Student
>
> Universidade da Coruña (UDC)
>
> http://gac.udc.es/~marcos.horro/
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20191124/8a254c89/attachment.html>


More information about the cfe-dev mailing list