Clangd + vim
Date: 2020-10-18Last modified: 2023-03-07
echo -e 'deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch-8 main\ndeb-src http://apt.llvm.org/stretch/ llvm-toolchain-stretch-8 main\n' \
> /etc/apt/sources.list.d/llvm-toolchain.list
apt install clang-8 clang-tools-8 clang-format-8
apt install libc++-8-dev libclang-8-dev libc++abi-8-dev
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-8 100
update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-8 100
update-alternatives --install /usr/bin/clangd clangd /usr/bin/clangd-8 100
update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-8 100