#基于哪个配置文件 BasedOnStyle: LLVM #指针的*的挨着哪边 PointerAlignment: Left #缩进宽度 IndentWidth: 4 #连续的空行保留几行 MaxEmptyLinesToKeep: 1 #是否允许短方法单行 AllowShortFunctionsOnASingleLine: true #是否允许短if单行 If true, if (a) return; 可以放到同一行 AllowShortIfStatementsOnASingleLine: true #注释对齐 AlignTrailingComments: true #换行的时候对齐操作符 #AlignOperands: true #多行声明语句按照=对齐 AlignConsecutiveDeclarations: true #连续的赋值语句以 = 为中心对齐 AlignConsecutiveAssignments: false AlignConsecutiveDeclarations: false #等号两边的空格 SpaceBeforeAssignmentOperators: true #缩进 IndentWrappedFunctionNames: true #在block从空行开始 KeepEmptyLinesAtTheStartOfBlocks: true #在构造函数初始化时按逗号断行,并以冒号对齐 BreakConstructorInitializersBeforeComma: true #函数参数换行 AllowAllParametersOfDeclarationOnNextLine: true #括号后添加空格 SpaceAfterCStyleCast: true #tab键盘的宽度 TabWidth: 4 UseTab: Never #在模板参数声明后换行 AlwaysBreakTemplateDeclarations: true