Fix clang-format-11 brace wrapping rule 03/310603/1
authorEunki, Hong <eunkiki.hong@samsung.com>
Thu, 2 May 2024 11:53:10 +0000 (20:53 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Thu, 2 May 2024 11:53:10 +0000 (20:53 +0900)
There was some error when we try to execute clang-format-11 for csharp-binder.

if
{
  // blabla
} else
{
  // bla bla
}

This rule was not matched with dali coding style guide.

Let we change error value for clang-format file.

Note : Since we dont want to tab for extern cases, we need to use Custom,
instead of Allman.

Change-Id: I29127a7dc8fc0d75287f2f67ee4baf1e5673e907
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
.clang-format

index 7d18b03..7fdaf1a 100644 (file)
@@ -30,8 +30,8 @@ BraceWrapping:
   AfterStruct:     true
   AfterUnion:      true
   AfterExternBlock: false
-  BeforeCatch:     false
-  BeforeElse:      false
+  BeforeCatch:     true
+  BeforeElse:      true
   IndentBraces:    false
   SplitEmptyFunction: true
   SplitEmptyRecord: true