설치법

4.0

$ sudo apt-add-repository "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-4.0 main"
$ sudo apt-get update
$ sudo apt-get install clang-4.0 lldb-4.0

3.9

필자는 3.9로 설치하였다.

$ wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
$ sudo apt-add-repository "deb https://apt.llvm.org/xenial/ llvm-toolchain-xenial-3.9 main"
$ sudo apt -o Acquire::AllowInsecureRepositories=true update
$ sudo apt-get install clang-3.9 lldb-3.9