From ecac887aa7aa69c8b5109b11c85fb23351a8b00d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Wed, 3 Aug 2022 12:11:12 +0200 Subject: [PATCH] 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) --- .clang-format | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.clang-format b/.clang-format index 9d436388d1a..c2f8b77acdc 100644 --- a/.clang-format +++ b/.clang-format @@ -20,7 +20,7 @@ AllowAllParametersOfDeclarationOnNextLine: false # AllowShortEnumsOnASingleLine: true # AllowShortBlocksOnASingleLine: Never # AllowShortCaseLabelsOnASingleLine: false -AllowShortFunctionsOnASingleLine: Inline +# AllowShortFunctionsOnASingleLine: All # AllowShortLambdasOnASingleLine: All # AllowShortIfStatementsOnASingleLine: Never # AllowShortLoopsOnASingleLine: false