summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-10-25 15:57:30 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-03-08 15:22:42 +0200
commit7c96b24924462078d31012a0d1dd45ccdb9771ed (patch)
treecf4f17515a593a2e36c37994751809416c2efcb8 /.clang-format
parent4bb22013a5e9d61725efb8b74a90f24e71feab4c (diff)
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 <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
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 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