clang-format
安装
1 | sudo apt install clang-format |
使用
‵‵`sh
clang-format –style=LLVM main.cpp
1 |
|
生成配置文件内容打印到标准输出,将输出保存到.clang-format或_clang-format,这样当指定了-style=file
选项时,将从文件所在目录及其上级目录寻找配置文件来格式化。
- Title: clang-format
- Author: Endless_daydream
- Created at : 2024-05-02 20:14:14
- Updated at : 2024-05-04 09:09:15
- Link: https://endless_daydream.gitee.io/2024/05/02/cpp/clang-format/
- License: This work is licensed under CC BY-NC-SA 4.0.
Comments