Instructions for installing Clang Analyzer

The instructions for installing Clang Analyzer on systems other than the Mac appear to be incomplete:

http://clang-analyzer.llvm.org/installation#OtherPlatforms

In the first paragraph, 'building Clang from source code' is a hyperlink to the info you requested:

http://clang.llvm.org/get_started.html#build

Gordon

Thank you for that. That page gives instructions to build clang from the svn. It doesn't mention the analyzer specifically, though it does refer to extra tools.

Reading the instructions I quoted before, I can see an implication that building clang does build the analyzer but doesn't install it. Is that correct? If so, all that is needed is to make these instructions a bit clearer.

At the moment I have clang built from the distribution 3.2, rather than the svn version.

What I would like to do is to build and use an analyzer which is compatible with the distribution code. If it is already in the 3.2 distribution, all I need to do is to find the binaries and copy them to my install directory, or link from there to where they actually are.

If analyzer is not in the distribution, I need a download of the source code compatible with the distribution.

Thanks again

John

Gordon

Thank you again.

I have checked on my installation from the 3.2 distribution and the distribution does indeed contain scan-build and scan-view in their directories in clang/tools.

What I have done is to provide links from the installation bin directory to the directories where the tools are so that they can be used.

That has enabled me to start to explore the capabilities of the analyser.

Thanks again

John