diff --git a/.clang-format b/.clang-format index 6242e314..4020d73a 100644 --- a/.clang-format +++ b/.clang-format @@ -1,25 +1,27 @@ -# Format Style Options - Created with Clang Power Tools --- +BasedOnStyle: LLVM AlignAfterOpenBracket: Align -AlignOperands: AlignAfterOperator -AllowAllArgumentsOnNextLine: false -AllowShortBlocksOnASingleLine: Never +AlignEscapedNewlines: Left +AllowAllArgumentsOnNextLine: 'false' +AllowShortBlocksOnASingleLine: 'false' AllowShortFunctionsOnASingleLine: None AllowShortIfStatementsOnASingleLine: Never -BasedOnStyle: LLVM -BinPackArguments: false -BinPackParameters: false -BreakBeforeBinaryOperators: None +BinPackArguments: 'false' +BinPackParameters: 'false' BreakBeforeBraces: Allman -BreakBeforeTernaryOperators: true BreakConstructorInitializers: AfterColon -ColumnLimit: 120 -ConstructorInitializerAllOnOneLineOrOnePerLine: true -ConstructorInitializerIndentWidth : 2 -ContinuationIndentWidth: 2 -MaxEmptyLinesToKeep: 2 +ColumnLimit: '120' +ConstructorInitializerAllOnOneLineOrOnePerLine: 'true' +ConstructorInitializerIndentWidth: '2' +ContinuationIndentWidth: '2' +MaxEmptyLinesToKeep: '2' PointerAlignment: Middle -SortIncludes: false -SpacesInAngles: true -SpacesInParentheses: true +SortIncludes: 'false' +SortUsingDeclarations: 'false' +SpaceBeforeParens: Never +SpacesInAngles: 'true' +SpacesInParentheses: 'true' +SpacesInSquareBrackets: 'true' +UseTab: Never + ... diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index baeec589..4560b5b0 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -10,6 +10,7 @@ on: - ".github/**" - "howto/**" - "*.md" + - ".clang-format" pull_request: branches: - dev diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index a46c7862..9b9e7431 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -14,6 +14,7 @@ on: - ".github/**" - "howto/**" - "*.md" + - ".clang-format" pull_request: branches: - dev diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index a1605a50..c5d781a9 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -14,6 +14,7 @@ on: - ".github/**" - "howto/**" - "*.md" + - ".clang-format" pull_request: branches: - dev