[cfe-users] Instructions for installing Clang Analyzer

Fletcher, John P j.p.fletcher at aston.ac.uk
Thu Jan 10 08:00:03 PST 2013


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

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

----
Other Platforms (Building the Analyzer from Source)

For other platforms, you must build Clang and LLVM manually. To do so, please follow the instructions for building Clang from source code.

Once the Clang is built, you need to add the following to your path:

    The location of the clang binary.

    For example, if you built a Debug+Asserts build of LLVM/Clang (the default), the resultant clang binary will be in $(OBJDIR)/Debug+Asserts/bin (where $(OBJDIR) is often the same as the root source directory). You can also do make install to install the LLVM/Clang libraries and binaries to the installation directory of your choice (specified when you run configure).
    The locations of the scan-build and scan-view programs.

    Currently these are not installed using make install, and are located in $(SRCDIR)/tools/clang/tools/scan-build and $(SRCDIR)/tools/clang/tools/scan-view respectively (where $(SRCDIR) is the root LLVM source directory). These locations are subject to change.

----
These instructions don't say where to get the source code, or what to do with it.

Are there some fuller instructions somewhere else, please?

John Fletcher






More information about the cfe-users mailing list