Jelajahi Sumber

.clang-format: change AllowShortFunctionsOnASingleLine back to `Inline`

Nikita 7 bulan lalu
induk
melakukan
2845995b02
2 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 1 1
      .clang-format
  2. 1 0
      misc/utility/.clang-format-glsl

+ 1 - 1
.clang-format

@@ -44,7 +44,7 @@ AllowAllParametersOfDeclarationOnNextLine: false
 # AllowShortBlocksOnASingleLine: Never
 # AllowShortCaseLabelsOnASingleLine: false
 # AllowShortEnumsOnASingleLine: true
-# AllowShortFunctionsOnASingleLine: All
+AllowShortFunctionsOnASingleLine: Inline
 # AllowShortIfStatementsOnASingleLine: Never
 # AllowShortLambdasOnASingleLine: All
 # AllowShortLoopsOnASingleLine: false

+ 1 - 0
misc/utility/.clang-format-glsl

@@ -8,6 +8,7 @@ AlignTrailingComments:
   Kind: Never
   OverEmptyLines: 0
 AllowAllParametersOfDeclarationOnNextLine: false
+AllowShortFunctionsOnASingleLine: Inline
 BreakConstructorInitializers: AfterColon
 ColumnLimit: 0
 ConstructorInitializerIndentWidth: 8