Browse Source

Style: Workaround clang-format 14 bug with `Inline` oneliner functions

We use 'All' which is the default in the base LLVM style.

That's not the style we want but it works around the upstream
regression until clang-format 15.0 is released and widely used:
https://github.com/llvm/llvm-project/issues/54901

(cherry picked from commit 11ec70959cf8500a53a0c95b0f08380ffdccc6ee)
Rémi Verschelde 3 years ago
parent
commit
ecac887aa7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      .clang-format

+ 1 - 1
.clang-format

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