安装 clang、llvm
sudo apt-get install llvm
sudo apt-get install clang
配置默认的C++编译
sudo update-alternatives --config c++
There are 2 choices for the alternative c++ (providing /usr/bin/c++).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/g++ 20 auto mode
1 /usr/bin/clang++ 10 manual mode
2 /usr/bin/g++ 20 manual mode
Press enter to keep the current choice[*], or type selection number: 1
sudo update-alternatives --config cc