Skip to content

Commit f3dd264

Browse files
pbhandar2meta-codesync[bot]
authored andcommitted
Update clang-format-check.yml (#437)
Summary: Upgrade clang format version and also removed deprecated params with v21 ones Pull Request resolved: #437 Reviewed By: rlyerly Differential Revision: D97771294 Pulled By: pbhandar2 fbshipit-source-id: 16209749db9acdf77ac5b02d11333780d4542f41
1 parent 7c85749 commit f3dd264

3 files changed

Lines changed: 19 additions & 19 deletions

File tree

.clang-format

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
---
22
AccessModifierOffset: -1
3-
AlignEscapedNewlinesLeft: true
3+
AlignEscapedNewlines: Left
44
AlignTrailingComments: true
55
AllowAllParametersOfDeclarationOnNextLine: true
6-
AllowShortIfStatementsOnASingleLine: false
6+
AllowShortIfStatementsOnASingleLine: Never
77
AllowShortLoopsOnASingleLine: false
88
AlwaysBreakBeforeMultilineStrings: true
9-
AlwaysBreakTemplateDeclarations: true
9+
BreakTemplateDeclarations: Yes
1010
BasedOnStyle: Google
1111
BinPackParameters: false
12-
BreakBeforeBinaryOperators: false
12+
BreakBeforeBinaryOperators: None
1313
BreakBeforeBraces: Attach
14-
BreakConstructorInitializersBeforeComma: false
14+
BreakConstructorInitializers: BeforeColon
1515
ColumnLimit: 80
16-
ConstructorInitializerAllOnOneLineOrOnePerLine: true
16+
PackConstructorInitializers: NextLine
1717
ConstructorInitializerIndentWidth: 4
1818
ContinuationIndentWidth: 4
1919
Cpp11BracedListStyle: true
2020
DerivePointerAlignment: false
2121
ExperimentalAutoDetectBinPacking: true
2222
IndentCaseLabels: false
23-
IndentFunctionDeclarationAfterType: false
23+
IndentWrappedFunctionNames: false
2424
IndentWidth: 2
2525
MaxEmptyLinesToKeep: 1
2626
NamespaceIndentation: None
@@ -32,11 +32,11 @@ PenaltyBreakString: 1000
3232
PenaltyExcessCharacter: 1000000
3333
PenaltyReturnTypeOnItsOwnLine: 200
3434
PointerAlignment: Left
35-
SpaceAfterControlStatementKeyword: true
35+
SpaceBeforeParens: ControlStatements
3636
SpaceBeforeAssignmentOperators: true
3737
SpaceInEmptyParentheses: false
3838
SpacesBeforeTrailingComments: 1
39-
SpacesInAngles: false
39+
SpacesInAngles: Never
4040
SpacesInCStyleCastParentheses: false
4141
SpacesInParentheses: false
4242
Standard: Cpp11

.github/workflows/clang-format-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ jobs:
1717
- name: Run clang-format
1818
uses: jidicula/clang-format-action@v4.13.0
1919
with:
20-
clang-format-version: '18'
20+
clang-format-version: '21'
2121
check-path: ${{ matrix.path }}

cachelib/.clang-format

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
---
22
AccessModifierOffset: -1
3-
AlignEscapedNewlinesLeft: true
3+
AlignEscapedNewlines: Left
44
AlignTrailingComments: true
55
AllowAllParametersOfDeclarationOnNextLine: true
6-
AllowShortIfStatementsOnASingleLine: false
6+
AllowShortIfStatementsOnASingleLine: Never
77
AllowShortLoopsOnASingleLine: false
88
AlwaysBreakBeforeMultilineStrings: true
9-
AlwaysBreakTemplateDeclarations: true
9+
BreakTemplateDeclarations: Yes
1010
BasedOnStyle: Google
1111
BinPackParameters: false
12-
BreakBeforeBinaryOperators: false
12+
BreakBeforeBinaryOperators: None
1313
BreakBeforeBraces: Attach
14-
BreakConstructorInitializersBeforeComma: false
14+
BreakConstructorInitializers: BeforeColon
1515
ColumnLimit: 80
16-
ConstructorInitializerAllOnOneLineOrOnePerLine: true
16+
PackConstructorInitializers: NextLine
1717
ConstructorInitializerIndentWidth: 4
1818
ContinuationIndentWidth: 4
1919
Cpp11BracedListStyle: true
2020
DerivePointerAlignment: false
2121
ExperimentalAutoDetectBinPacking: true
2222
IndentCaseLabels: false
23-
IndentFunctionDeclarationAfterType: false
23+
IndentWrappedFunctionNames: false
2424
IndentWidth: 2
2525
MaxEmptyLinesToKeep: 1
2626
NamespaceIndentation: None
@@ -32,11 +32,11 @@ PenaltyBreakString: 1000
3232
PenaltyExcessCharacter: 1000000
3333
PenaltyReturnTypeOnItsOwnLine: 200
3434
PointerAlignment: Left
35-
SpaceAfterControlStatementKeyword: true
35+
SpaceBeforeParens: ControlStatements
3636
SpaceBeforeAssignmentOperators: true
3737
SpaceInEmptyParentheses: false
3838
SpacesBeforeTrailingComments: 1
39-
SpacesInAngles: false
39+
SpacesInAngles: Never
4040
SpacesInCStyleCastParentheses: false
4141
SpacesInParentheses: false
4242
Standard: Cpp11

0 commit comments

Comments
 (0)