clang官方给出了代码风格配置时的各个选项的说明:
Clang-Format Style Options — Clang 13 documentation
https://clang.llvm.org/docs/ClangFormatStyleOptions.html
clang内置了以下几种基础风格:
-
LLVM A style complying with the LLVM coding standards
-
Google A style complying with Google’s C++ style guide
-
Chromium A style complying with Chromium’s style guide
-
Mozilla A style complying with Mozilla’s style guide
-
WebKit A style complying with WebKit’s style guide
-
Microsoft A style complying with Microsoft’s style guide
-
GNU A style complying with the GNU coding standards