Skip to content

Commit

Permalink
Style: Workaround clang-format 14 bug with Inline oneliner functions
Browse files Browse the repository at this point in the history
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:
llvm/llvm-project#54901
  • Loading branch information
akien-mga committed Aug 3, 2022
1 parent 2c0c76c commit 11ec709
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ AllowAllParametersOfDeclarationOnNextLine: false
# AllowShortEnumsOnASingleLine: true
# AllowShortBlocksOnASingleLine: Never
# AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Inline
# AllowShortFunctionsOnASingleLine: All
# AllowShortLambdasOnASingleLine: All
# AllowShortIfStatementsOnASingleLine: Never
# AllowShortLoopsOnASingleLine: false
Expand Down

0 comments on commit 11ec709

Please sign in to comment.