[cfe-dev] How does scan-build

Christian Gagneraud via cfe-dev cfe-dev at lists.llvm.org
Thu Jul 18 03:09:14 PDT 2019


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