{ BasedOnStyle: LLVM, UseTab: Never, IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Allman, AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false, ColumnLimit: 0, AccessModifierOffset: -4, NamespaceIndentation: All, FixNamespaceComments: false ,AlignConsecutiveMacros: AcrossEmptyLinesAndComments}
在原来Visual Studio
样式类的基础上增加了:
宏定义对齐:AlignConsecutiveMacros: AcrossEmptyLinesAndComments
Clang-format详细文档:Clang-Format Style Options — Clang 18.0.0git documentation