forked from mpusz/mp-units
style: clang-format updated to clang 17
This commit is contained in:
@@ -1,6 +1,3 @@
|
|||||||
########################################################################################
|
|
||||||
# NOTE: At least clang-format-16 is needed to format the code of this project correctly
|
|
||||||
########################################################################################
|
|
||||||
---
|
---
|
||||||
BasedOnStyle: Google
|
BasedOnStyle: Google
|
||||||
---
|
---
|
||||||
@@ -32,6 +29,11 @@ AccessModifierOffset: -2
|
|||||||
# AcrossComments: false
|
# AcrossComments: false
|
||||||
# AlignCompound: false
|
# AlignCompound: false
|
||||||
# PadOperators: false
|
# PadOperators: false
|
||||||
|
# AlignConsecutiveShortCaseStatements:
|
||||||
|
# Enabled: false
|
||||||
|
# AcrossEmptyLines: false
|
||||||
|
# AcrossComments: false
|
||||||
|
# AlignCaseColons: false
|
||||||
# AlignEscapedNewlines: Left
|
# AlignEscapedNewlines: Left
|
||||||
# AlignOperands: Align
|
# AlignOperands: Align
|
||||||
# AlignTrailingComments:
|
# AlignTrailingComments:
|
||||||
@@ -140,6 +142,7 @@ IncludeCategories:
|
|||||||
# JavaScriptQuotes: Leave
|
# JavaScriptQuotes: Leave
|
||||||
# JavaScriptWrapImports: true
|
# JavaScriptWrapImports: true
|
||||||
# KeepEmptyLinesAtTheStartOfBlocks: false
|
# KeepEmptyLinesAtTheStartOfBlocks: false
|
||||||
|
# KeepEmptyLinesAtEOF: false
|
||||||
# LambdaBodyIndentation: Signature
|
# LambdaBodyIndentation: Signature
|
||||||
# LineEnding: DeriveLF
|
# LineEnding: DeriveLF
|
||||||
# MacroBlockBegin: ''
|
# MacroBlockBegin: ''
|
||||||
@@ -198,6 +201,7 @@ QualifierAlignment: Left
|
|||||||
# ReferenceAlignment: Pointer
|
# ReferenceAlignment: Pointer
|
||||||
# ReflowComments: true
|
# ReflowComments: true
|
||||||
# RemoveBracesLLVM: false
|
# RemoveBracesLLVM: false
|
||||||
|
# RemoveParentheses: Leave
|
||||||
# RemoveSemicolon: false
|
# RemoveSemicolon: false
|
||||||
# RequiresClausePosition: OwnLine
|
# RequiresClausePosition: OwnLine
|
||||||
# RequiresExpressionIndentation: OuterScope
|
# RequiresExpressionIndentation: OuterScope
|
||||||
@@ -215,6 +219,7 @@ SpaceAfterTemplateKeyword: false
|
|||||||
# SpaceBeforeCpp11BracedList: false
|
# SpaceBeforeCpp11BracedList: false
|
||||||
# SpaceBeforeCtorInitializerColon: true
|
# SpaceBeforeCtorInitializerColon: true
|
||||||
# SpaceBeforeInheritanceColon: true
|
# SpaceBeforeInheritanceColon: true
|
||||||
|
# SpaceBeforeJsonColon: false
|
||||||
# SpaceBeforeParens: ControlStatements
|
# SpaceBeforeParens: ControlStatements
|
||||||
SpaceBeforeParensOptions:
|
SpaceBeforeParensOptions:
|
||||||
# AfterControlStatements: true
|
# AfterControlStatements: true
|
||||||
@@ -229,16 +234,18 @@ SpaceBeforeParensOptions:
|
|||||||
# SpaceBeforeRangeBasedForLoopColon: true
|
# SpaceBeforeRangeBasedForLoopColon: true
|
||||||
# SpaceBeforeSquareBrackets: false
|
# SpaceBeforeSquareBrackets: false
|
||||||
# SpaceInEmptyBlock: false
|
# SpaceInEmptyBlock: false
|
||||||
# SpaceInEmptyParentheses: false
|
|
||||||
# SpacesBeforeTrailingComments: 2
|
# SpacesBeforeTrailingComments: 2
|
||||||
# SpacesInAngles: Never
|
# SpacesInAngles: Never
|
||||||
# SpacesInConditionalStatement: false
|
|
||||||
# SpacesInContainerLiterals: true
|
# SpacesInContainerLiterals: true
|
||||||
# SpacesInCStyleCastParentheses: false
|
|
||||||
# SpacesInLineCommentPrefix:
|
# SpacesInLineCommentPrefix:
|
||||||
# Minimum: 1
|
# Minimum: 1
|
||||||
# Maximum: -1
|
# Maximum: -1
|
||||||
# SpacesInParentheses: false
|
# SpacesInParens: Never
|
||||||
|
# SpacesInParensOptions:
|
||||||
|
# InCStyleCasts: false
|
||||||
|
# InConditionalStatements: false
|
||||||
|
# InEmptyParentheses: false
|
||||||
|
# Other: false
|
||||||
# SpacesInSquareBrackets: false
|
# SpacesInSquareBrackets: false
|
||||||
# Standard: Auto
|
# Standard: Auto
|
||||||
# StatementAttributeLikeMacros:
|
# StatementAttributeLikeMacros:
|
||||||
@@ -248,6 +255,7 @@ SpaceBeforeParensOptions:
|
|||||||
# - QT_REQUIRE_VERSION
|
# - QT_REQUIRE_VERSION
|
||||||
# TabWidth: 8
|
# TabWidth: 8
|
||||||
# UseTab: Never
|
# UseTab: Never
|
||||||
|
# VerilogBreakBetweenInstancePorts: true
|
||||||
# WhitespaceSensitiveMacros:
|
# WhitespaceSensitiveMacros:
|
||||||
# - BOOST_PP_STRINGIZE
|
# - BOOST_PP_STRINGIZE
|
||||||
# - CF_SWIFT_NAME
|
# - CF_SWIFT_NAME
|
||||||
|
@@ -11,7 +11,7 @@ repos:
|
|||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
- repo: https://github.com/pre-commit/mirrors-clang-format
|
- repo: https://github.com/pre-commit/mirrors-clang-format
|
||||||
rev: v16.0.6
|
rev: v17.0.3
|
||||||
hooks:
|
hooks:
|
||||||
- id: clang-format
|
- id: clang-format
|
||||||
- repo: https://github.com/cheshirekow/cmake-format-precommit
|
- repo: https://github.com/cheshirekow/cmake-format-precommit
|
||||||
|
Reference in New Issue
Block a user