[llvm-dev] [cfe-dev] scan-build on Windows
Artem Dergachev via llvm-dev
llvm-dev at lists.llvm.org
Tue Apr 9 18:10:18 PDT 2019
+Aaron because i think he uses scan-build on Windows more or less
successfully. I won't have time for setting up a Windows machine for
myself in the nearest future.
Could you tell us exactly what you're doing and what exactly does it
print to console, more in the spirit of
http://www.catb.org/~esr/faqs/smart-questions.html ?
> scan-build: Not supported for windows. Exiting...
Hmm, i don't see such string in the source code of scan-build, neither
it looks like a standard Perl message.
> don't install clang and related tools like scan-build in /usr/bin i
am not able to generate reports ( HTML files )
Could you provide the exact command and its exact output? Normally you
don't care where is everything installed because you simply provide the
path to the analyzer with `--use-analyzer`.
On 4/8/19 12:26 PM, Siddharth Shankar Swain wrote:
> Hi Artem, Laszlo,
>
> There are couple of problems with scan-build :-
>
> 1) For Windows i get the following error while running scan-build - "
>
> “scan-build: Not supported for windows. Exiting...”:
>
> 2) For Linux Also if i don't install clang and related tools like
> scan-build in /usr/bin i am not able to generate reports ( HTML files
> ). Like i get the clang_sa_warnings in cmd but scan-build removes the
> directory saying no bugs found.
>
> Note - I already set the CC and CXX flags to the clang compiler
>
> Please let me know if there is any other changes i need to make in the
> env variable.
>
> Thanks,
> Siddharth
>
>
>
> On Sat, Apr 6, 2019 at 5:28 AM Laszlo Nagy
> <rizsotto.mailinglist at gmail.com
> <mailto:rizsotto.mailinglist at gmail.com>> wrote:
>
> Hi Siddharth,
>
> alternativly you can try this
> <https://github.com/rizsotto/scan-build>, it's written in Python.
>
> Regards,
> Laszlo
>
> On Sat, Apr 6, 2019 at 5:14 AM Artem Dergachev via cfe-dev
> <cfe-dev at lists.llvm.org <mailto:cfe-dev at lists.llvm.org>> wrote:
>
> Hi,
>
> I never tried it myself but i can try to help you with
> specific problems
> that you're having if you disclose them.
>
> scan-build is a Perl script, it most likely requires having
> Perl and a
> few Perl modules installed and that's it.
>
> On 4/5/19 4:25 AM, Siddharth Shankar Swain via cfe-dev wrote:
> > Hi all,
> >
> > Can anyone help in installing and running "scan-build" on
> Windows ?
> >
> > Thanks,
> > Siddharth
> >
> > _______________________________________________
> > 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
>
> _______________________________________________
> 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
>
More information about the llvm-dev
mailing list