From patchwork Mon Feb 22 03:29:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 11350 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id DE475BD1F1 for ; Mon, 22 Feb 2021 03:29:49 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 17B06689F9; Mon, 22 Feb 2021 04:29:49 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="j50DGtjB"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 6B697602F1 for ; Mon, 22 Feb 2021 04:29:47 +0100 (CET) Received: from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 0BE3B36B5 for ; Mon, 22 Feb 2021 04:29:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1613964587; bh=zXE8BGkHZlZpVF7s1mhCR966dFSSIsc4dRKBLz9pfrU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=j50DGtjBvFySGKn99lWu+5Dzoye7wignX1kzPqMenthq63KTCWjoQ2gQHvrdspJKJ c4+VhF+K3tq3mU+4rVmjKaFMYkg43PK7HR8h54OLNqX83iW70dPTVVa9UnQjxfqjBc n7RqTF0hEb6OU53FSONDwytiNg3TDI9+C8fkYdcc= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Mon, 22 Feb 2021 05:29:15 +0200 Message-Id: <20210222032915.31452-2-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20210222032915.31452-1-laurent.pinchart@ideasonboard.com> References: <20210222032915.31452-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 2/2] clang-format: Update to reflect coding style X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" 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(-) 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