summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-08-03 12:11:12 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-08-03 12:20:23 +0200
commit11ec70959cf8500a53a0c95b0f08380ffdccc6ee (patch)
tree9d3841109119412766ae17df6deea130eb0d7555 /.clang-format
parent2c0c76c415f1b8b7d46f63d12b12ef56c8c85f4d (diff)
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
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format2
1 files changed, 1 insertions, 1 deletions
diff --git a/.clang-format b/.clang-format
index f7527b8927..1df6c35bfb 100644
--- a/.clang-format
+++ b/.clang-format
@@ -19,7 +19,7 @@ AllowAllParametersOfDeclarationOnNextLine: false
# AllowShortEnumsOnASingleLine: true
# AllowShortBlocksOnASingleLine: Never
# AllowShortCaseLabelsOnASingleLine: false
-AllowShortFunctionsOnASingleLine: Inline
+# AllowShortFunctionsOnASingleLine: All
# AllowShortLambdasOnASingleLine: All
# AllowShortIfStatementsOnASingleLine: Never
# AllowShortLoopsOnASingleLine: false