[libcamera-devel] [PATCH 2/2] clang-format: Update to reflect coding style

Laurent Pinchart laurent.pinchart at ideasonboard.com
Mon Feb 22 04:29:15 CET 2021


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 <laurent.pinchart at ideasonboard.com>
---
 .clang-format | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.clang-format b/.clang-format
index c561a8d9245b..8719683aa2c1 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
-- 
Regards,

Laurent Pinchart



More information about the libcamera-devel mailing list