From 7c96b24924462078d31012a0d1dd45ccdb9771ed Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Fri, 25 Oct 2019 15:57:30 +0300 Subject: clang-format: Update to reflect coding style The libcamera coding style allows functions to be defined on a single line only when they're inline. Update the clang-format configuration accordingly. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- .clang-format | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.clang-format') diff --git a/.clang-format b/.clang-format index c561a8d9..8719683a 100644 --- a/.clang-format +++ b/.clang-format @@ -20,7 +20,7 @@ AlignTrailingComments: false AllowAllParametersOfDeclarationOnNextLine: false AllowShortBlocksOnASingleLine: false AllowShortCaseLabelsOnASingleLine: false -AllowShortFunctionsOnASingleLine: Inline +AllowShortFunctionsOnASingleLine: InlineOnly AllowShortIfStatementsOnASingleLine: false AllowShortLoopsOnASingleLine: false AlwaysBreakAfterDefinitionReturnType: None -- cgit v1.2.1