X-Git-Url: https://git.xinqibao.xyz/dotfiles.git/blobdiff_plain/875c81c3638e1b2218d8b3b6fbd5494cbe5b1a5f..9fd073273405b8309f3fa57184f6cde479ca48b9:/.clang-format?ds=sidebyside diff --git a/.clang-format b/.clang-format index 94d2231..32b5af2 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 @@ -67,16 +67,16 @@ ForEachMacros: - BOOST_FOREACH IncludeBlocks: Regroup IncludeCategories: - - Regex: '^' - Priority: 2 - Regex: '^<.*\.h>' Priority: 1 - Regex: '^<.*' Priority: 2 - - Regex: '.*' + - Regex: '^"common/.*"' Priority: 3 + - Regex: '.*' + Priority: 4 IncludeIsMainRegex: '([-_](test|unittest))?$' -IndentCaseLabels: false +IndentCaseLabels: true IndentPPDirectives: None IndentWidth: 4 IndentWrappedFunctionNames: false