Update format to clang-format 12
MODIFY
.clang-format
.clang-format
@@ -7,8 +7,6 @@ IndentWidth: 4
ColumnLimit: 120
PointerAlignment: Left
-BreakBeforeBraces: Allman
-
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: All
@@ -34,6 +32,27 @@ SpaceBeforeCpp11BracedList: false
DeriveLineEnding: false
UseCRLF: false
+BreakBeforeBraces: Custom
+BraceWrapping:
+ AfterCaseLabel: true
+ AfterClass: true
+ AfterControlStatement: Always
+ AfterEnum: true
+ AfterFunction: true
+ AfterNamespace: true
+ AfterObjCDeclaration: true
+ AfterStruct: true
+ AfterUnion: true
+ AfterExternBlock: true
+ BeforeCatch: true
+ BeforeElse: true
+ BeforeLambdaBody: false
+ BeforeWhile: false
+ IndentBraces: false
+ SplitEmptyFunction: true
+ SplitEmptyRecord: true
+ SplitEmptyNamespace: true
+
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^(<vcpkg/base/system_headers\.h>|"pch\.h")$'

Update format to clang-format 12 (#164)