[cfe-dev] How does scan-build
Дилян Палаузов via cfe-dev
cfe-dev at lists.llvm.org
Thu Jul 18 03:15:20 PDT 2019
Hello Christin,
I want to understand how the clang static analyzer is used, and https://clang-analyzer.llvm.org/scan-build.html says to
use directly “scan-build”.
On Thu, 2019-07-18 at 22:09 +1200, Christian Gagneraud wrote:
> On Thu, 18 Jul 2019 at 21:53, Дилян Палаузов via cfe-dev
> <cfe-dev at lists.llvm.org> wrote:
> > Hello,
> >
> > how does scan-build exactly parse its parameters?
> >
> > How does “scan-build make” know, that it should just invoke make and not do anything until a compiler is invoked.
> >
> > Does “scan-build cc …” parse in fact the source code, or the generated object files and in the former case, is the
> > compiler invoked or does scan-build just considers the parameters passed to the compiler?
>
> You shouldn't need scan-build nowadays, what build system are you
> using? Cmake, qbs and i'm sure others support generating a clang
> compilation database.
>
> Chris
>
>
> > Regards
> > Дилян
> >
> > _______________________________________________
> > cfe-dev mailing list
> > cfe-dev at lists.llvm.org
> > https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
More information about the cfe-dev
mailing list