BasedOnStyle: LLVM ObjCBlockIndentWidth: 4 IndentWidth: 4 TabWidth: 4 AccessModifierOffset: -4 ColumnLimit: 120 #模板声明后换行 AlwaysBreakTemplateDeclarations: true # 是否允许短if单行 If true, if (a) return; 可以放到同一行 AllowShortIfStatementsOnASingleLine: true #短句 while (true) continue; 能被放到单行。 AllowShortLoopsOnASingleLine: true AllowShortFunctionsOnASingleLine: false