执行以下命令即可:
wget -O - / | sudo apt-key add -
sudo vim /etc/apt/
## 插入从/ 找到的对应ubuntu版本的源代码
sudo apt update
sudo apt install clang-format-12
参考:
LLVM Debian/Ubuntu packages
Ubuntu下安装高版本clang-format 11, 12, 13_步丶丶的足记-****博客
执行以下命令即可:
wget -O - / | sudo apt-key add -
sudo vim /etc/apt/
## 插入从/ 找到的对应ubuntu版本的源代码
sudo apt update
sudo apt install clang-format-12
参考:
LLVM Debian/Ubuntu packages
Ubuntu下安装高版本clang-format 11, 12, 13_步丶丶的足记-****博客