浏览代码

build: clang-format

Michele Caini 1 年之前
父节点
当前提交
c6479e06ae
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      .clang-format

+ 2 - 1
.clang-format

@@ -2,10 +2,11 @@ BasedOnStyle: llvm
 ---
 AccessModifierOffset: -4
 AlignEscapedNewlines: DontAlign
-AllowShortBlocksOnASingleLine: Empty
+AllowShortBlocksOnASingleLine: Always
 AllowShortEnumsOnASingleLine: true
 AllowShortFunctionsOnASingleLine: Empty
 AllowShortIfStatementsOnASingleLine: WithoutElse
+AllowShortLambdasOnASingleLine: All
 AllowShortLoopsOnASingleLine: true
 AlwaysBreakTemplateDeclarations: Yes
 BreakBeforeBinaryOperators: NonAssignment