diff --git a/.clang-format b/.clang-format index 464375bd418..2208240a669 100644 --- a/.clang-format +++ b/.clang-format @@ -1,15 +1,18 @@ Language: Cpp BasedOnStyle: GNU AlignEscapedNewlinesLeft: true +AlignOperands: Align AlwaysBreakAfterReturnType: TopLevelDefinitions BreakBeforeBinaryOperators: All BreakBeforeBraces: GNU ColumnLimit: 70 ContinuationIndentWidth: 2 -ForEachMacros: [FOR_EACH_TAIL, - FOR_EACH_TAIL_SAFE, - FOR_EACH_LIVE_BUFFER, - ITREE_FOREACH] +ForEachMacros: + - FOR_EACH_TAIL + - FOR_EACH_TAIL_SAFE + - FOR_EACH_LIVE_BUFFER + - ITREE_FOREACH + - FOR_EACH_ALIST_VALUE IncludeCategories: - Regex: '^$' Priority: -1 @@ -19,6 +22,11 @@ IncludeCategories: Priority: 2 - Regex: '.*' Priority: 3 +WhitespaceSensitiveMacros: + - STR + - CALL1I + - CALL2I + - STR_VALUE KeepEmptyLinesAtTheStartOfBlocks: false MaxEmptyLinesToKeep: 1 PenaltyBreakBeforeFirstCallParameter: 2000