[cfe-dev] About Clang Static Analyzer

Alexei Svitkine alexei.svitkine at gmail.com
Thu May 13 17:02:40 PDT 2010


Is it possible to build a clang analyzer executable without requiring
building and linking LLVM?

Or does the analyzer actually depend on CodeGen?

-Alexei

On Wed, May 12, 2010 at 11:25 AM, Ted Kremenek <kremenek at apple.com> wrote:
> Hi Jiandong,
> As Jean-Daniel said, the analyzer itself is contained within a library.  The
> 'clang' executable simply links in that library and has some boilerplate
> logic to drive it.  You are perfectly free to use the analyzer logic in a
> different context.
> On May 12, 2010, at 2:31 AM, Jiandong Wang wrote:
>
> is that the case?  If it was true, it would be so frustrating.  Maybe I'll
> have to make another further research. Thank you all the same.
>
> On Wed, May 12, 2010 at 5:09 PM, Jean-Daniel Dupas <devlists at shadowlab.org>
> wrote:
>>
>> The Analyzer is clang.
>> To use it you do
>> clang --analyze ...
>> So your stand-alone code is llvm + clang
>> check out llvm
>> checkout clang in llvm/tool/clang
>> go to the llvm dir
>> configure && make
>> and you're done.
>>
>>
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>>
>> -- Jean-Daniel
>>
>>
>>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>




More information about the cfe-dev mailing list