APT_LLVM10_SRC=/etc/apt/sources.list.d/llvm10.list
APT_LLVM10_REPO=llvm-toolchain-$(lsb_release -cs)-10
if ! [ -f $APT_LLVM10_SRC ]; then
    wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
    cat > $APT_LLVM10_SRC <<EOF
deb http://apt.llvm.org/buster/ $APT_LLVM10_REPO main
deb-src http://apt.llvm.org/buster/ $APT_LLVM10_REPO main
EOF
    apt update
fi
apt install -y -t $APT_LLVM10_REPO \
    libllvm10 \
    llvm-10 \
    llvm-10-dev \
    llvm-10-doc \
    llvm-10-runtime \
    clang-10 \
    clang-tools-10 \
    clang-10-doc \
    libclang-common-10-dev \
    libclang-10-dev \
    libclang1-10 \
    clang-format-10 \
    clangd-10 \
    lldb-10 \
    lld-10 \
    libc++-10-dev \
    libc++abi-10-dev \
    libomp-10-dev
