diff --git a/.clang-format b/.clang-format index d6da5d94..782d1575 100644 --- a/.clang-format +++ b/.clang-format @@ -69,7 +69,6 @@ IndentWrappedFunctionNames: true InsertBraces: true InsertNewlineAtEOF: true KeepEmptyLinesAtTheStartOfBlocks: false -LineEnding: LF MaxEmptyLinesToKeep: 1 NamespaceIndentation: All ObjCBinPackProtocolList: Never diff --git a/.github/workflows/__call-common-lint.yml b/.github/workflows/__call-common-lint.yml index 5d87c6c3..a75ec8b8 100644 --- a/.github/workflows/__call-common-lint.yml +++ b/.github/workflows/__call-common-lint.yml @@ -208,6 +208,12 @@ jobs: # shellcheck disable=SC2086 # do not quote to keep this as a single line echo found_files=${found_files} >> "${GITHUB_OUTPUT}" + - name: C++ - Update Clang format config + if: always() && steps.cpp_files.outputs.found_files + shell: bash + run: | + echo "LineEnding: LF" >> .clang-format + - name: C++ - Clang format (diff) id: clang_format_diff if: always() && steps.cpp_files.outputs.found_files