From df3e7c5ca140818b0f92c7d0f866fc0486de1fd8 Mon Sep 17 00:00:00 2001 From: Anselm Busse Date: Thu, 24 Feb 2022 20:58:24 +0100 Subject: [PATCH] Prepare for ObjectiveC/ObjectiveC++ code This commit modifies the clang-format configuration and workflow to support ObjectiveC and ObjectiveC++ code. Signed-off-by: Anselm Busse --- .clang-format | 1 + .github/workflows/clang.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.clang-format b/.clang-format index 1c31d7ba..d28dcc4e 100644 --- a/.clang-format +++ b/.clang-format @@ -23,6 +23,7 @@ BraceWrapping: AfterEnum: false AfterFunction: false AfterNamespace: false + AfterObjCDeclaration: false AfterUnion: false BeforeCatch: true BeforeElse: true diff --git a/.github/workflows/clang.yml b/.github/workflows/clang.yml index d87256bc..9ac9d06a 100644 --- a/.github/workflows/clang.yml +++ b/.github/workflows/clang.yml @@ -22,7 +22,7 @@ jobs: uses: DoozyX/clang-format-lint-action@v0.13 with: source: './sunshine' - extensions: 'cpp,h' + extensions: 'cpp,h,m,mm' clangFormatVersion: 13 style: file inplace: ${{ matrix.inplace }}