[cfe-dev] Testing new ClangTool

Marcos Horro Varela via cfe-dev cfe-dev at lists.llvm.org
Sat Nov 23 20:22:51 PST 2019


Shraiysh,

Thanks for your prompt response. Solutions you propose seem to fit perfect with the tool that I am working on since it is also built out of source and its inputs are files/strings.
Thanks again.

Best regards,


--

Marcos Horro

PhD Student

Universidade da Coruña (UDC)

http://gac.udc.es/~marcos.horro/

________________________________
De: Shraiysh Vaishay <shraiysh at gmail.com>
Enviado: domingo, 24 de novembro de 2019 05:18
Para: Marcos Horro Varela <marcos.horro at udc.es>
CC: cfe-dev at lists.llvm.org <cfe-dev at lists.llvm.org>
Asunto: Re: [cfe-dev] Testing new ClangTool

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<mailto: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<mailto: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/2dbb6d22/attachment.html>


More information about the cfe-dev mailing list