diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2023-10-20 19:20:21 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2023-10-24 21:17:16 +0300 |
commit | 5a39f77a17fa28911c87caea1e2903c059e7ec41 (patch) | |
tree | a2a2ff266238e7e9322e36eb2d9c92cf18829406 /.clang-format | |
parent | e9cc1bc93c4ad9662c93e2a98d4c787e2dbf9f07 (diff) | |
download | bmcweb-5a39f77a17fa28911c87caea1e2903c059e7ec41.tar.xz |
clang-format: copy latest and re-format
clang-format-17 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.
Change-Id: I2f9540cf0d545a2da4d6289fc87b754f684bc9a7
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/.clang-format b/.clang-format index d92a3f10a4..d43e884dbb 100644 --- a/.clang-format +++ b/.clang-format @@ -14,26 +14,30 @@ AllowAllParametersOfDeclarationOnNextLine: true AllowShortBlocksOnASingleLine: Empty AllowShortCaseLabelsOnASingleLine: false AllowShortFunctionsOnASingleLine: Empty -AllowShortIfStatementsOnASingleLine: false +AllowShortIfStatementsOnASingleLine: Never +AllowShortLambdasOnASingleLine: true AllowShortLoopsOnASingleLine: false AlwaysBreakAfterReturnType: None AlwaysBreakBeforeMultilineStrings: false AlwaysBreakTemplateDeclarations: Yes BinPackArguments: true BinPackParameters: true +BitFieldColonSpacing: None BraceWrapping: AfterCaseLabel: true AfterClass: true AfterControlStatement: true AfterEnum: true + AfterExternBlock: true AfterFunction: true AfterNamespace: true AfterObjCDeclaration: true AfterStruct: true AfterUnion: true - AfterExternBlock: true BeforeCatch: true BeforeElse: true + BeforeLambdaBody: false + BeforeWhile: false IndentBraces: false SplitEmptyFunction: false SplitEmptyRecord: false @@ -48,17 +52,16 @@ BreakStringLiterals: false ColumnLimit: 80 CommentPragmas: '^ IWYU pragma:' CompactNamespaces: false -ConstructorInitializerAllOnOneLineOrOnePerLine: false ConstructorInitializerIndentWidth: 4 ContinuationIndentWidth: 4 Cpp11BracedListStyle: true -DeriveLineEnding: false DerivePointerAlignment: false -PointerAlignment: Left DisableFormat: false -ExperimentalAutoDetectBinPacking: false FixNamespaceComments: true -ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] +ForEachMacros: + - foreach + - Q_FOREACH + - BOOST_FOREACH IncludeBlocks: Regroup IncludeCategories: - Regex: '^[<"](gtest|gmock)' @@ -78,6 +81,7 @@ IncludeCategories: - Regex: '.*' Priority: 6 IndentCaseLabels: true +IndentExternBlock: NoIndent IndentRequiresClause: true IndentWidth: 4 IndentWrappedFunctionNames: true @@ -92,6 +96,7 @@ NamespaceIndentation: None ObjCBlockIndentWidth: 2 ObjCSpaceAfterProperty: false ObjCSpaceBeforeProtocolList: true +PackConstructorInitializers: BinPack PenaltyBreakAssignment: 25 PenaltyBreakBeforeFirstCallParameter: 19 PenaltyBreakComment: 300 @@ -100,12 +105,13 @@ PenaltyBreakString: 1000 PenaltyExcessCharacter: 1000000 PenaltyReturnTypeOnItsOwnLine: 60 PenaltyIndentedWhitespace: 0 +PointerAlignment: Left QualifierAlignment: Left ReferenceAlignment: Left ReflowComments: true RequiresClausePosition: OwnLine RequiresExpressionIndentation: Keyword -SortIncludes: true +SortIncludes: CaseSensitive SortUsingDeclarations: true SpaceAfterCStyleCast: false SpaceAfterTemplateKeyword: true @@ -117,7 +123,7 @@ SpaceBeforeParens: ControlStatements SpaceBeforeRangeBasedForLoopColon: true SpaceInEmptyParentheses: false SpacesBeforeTrailingComments: 1 -SpacesInAngles: false +SpacesInAngles: Never SpacesInContainerLiterals: true SpacesInCStyleCastParentheses: false SpacesInParentheses: false |