From: Xinqi Bao Date: Tue, 14 Dec 2021 05:17:53 +0000 (+0800) Subject: clang-format: update X-Git-Url: https://git.xinqibao.xyz/dotfiles.git/commitdiff_plain/c567950bef825e252b85d8bf7f58ad311fbe6e03?hp=d9d9c8aa01c562d037000e8b225a4fddc89c5f4c clang-format: update --- diff --git a/.clang-format b/.clang-format index 94d2231..d1f7671 100644 --- a/.clang-format +++ b/.clang-format @@ -41,8 +41,8 @@ BraceWrapping: SplitEmptyFunction: true SplitEmptyRecord: true SplitEmptyNamespace: true -BreakBeforeBinaryOperators: None -BreakBeforeBraces: Allman +BreakBeforeBinaryOperators: All +BreakBeforeBraces: Attach BreakBeforeInheritanceComma: false BreakInheritanceList: BeforeColon BreakBeforeTernaryOperators: true @@ -50,7 +50,7 @@ BreakConstructorInitializersBeforeComma: false BreakConstructorInitializers: BeforeColon BreakAfterJavaFieldAnnotations: false BreakStringLiterals: true -ColumnLimit: 80 +ColumnLimit: 120 CommentPragmas: '^ IWYU pragma:' CompactNamespaces: false ConstructorInitializerAllOnOneLineOrOnePerLine: true @@ -76,7 +76,7 @@ IncludeCategories: - Regex: '.*' Priority: 3 IncludeIsMainRegex: '([-_](test|unittest))?$' -IndentCaseLabels: false +IndentCaseLabels: true IndentPPDirectives: None IndentWidth: 4 IndentWrappedFunctionNames: false