[ubuntu-dev] install clang with static-analysis headers and stuff
cd
git clone https://github.com/llvm-mirror/llvm.git
cd llvm/tools
git clone https://github.com/llvm-mirror/clang.git
cd clang/tools
git clone https://github.com/llvm-mirror/clang-tools-extra.git extra
cd ~/llvm/projects
git clone https://github.com/llvm-mirror/libcxx.git
cd
mkdir llvm-build
cd llvm-build
cmake -G "Unix Makefiles" ../llvm
make
sudo make install
Thanks a lot for these instructions! We should definitely add them to our ubuntu-dev.dockerfile if they're useful for other developers as well.
Also, thanks for suggesting to build with -DCMAKE_BUILD_TYPE=Release in order to avoid Clang's Debug mode.
You should probably clone the release_40 branches for all the git clone as this is the version the static analysis is based on.
Second suggestion: we should probably use make -j<a lot> instead of make.
Third suggestion: the libcxx step is only for Mac and I think it should't be used for these containers, sorry about that.