From patchwork Wed Jan 30 11:13:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 445 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 5603D60B2D for ; Wed, 30 Jan 2019 12:13:54 +0100 (CET) Received: from localhost.localdomain (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id BFC5941; Wed, 30 Jan 2019 12:13:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1548846833; bh=ljlP4H82sCmZtXyXQs1VvoT1x+1NFBLpu3jgTmmyi8c=; h=From:To:Cc:Subject:Date:From; b=a/VgoGQuQVuVKjP4410VOqd9lOfrRHqhOxIOChNNlkWa2mpgjRPvTtQaZS/coxlGN ScINkdswVqilpd8riyE8BpUD4Fg8C0X4/OJwp0reXEqMkDf9wVDKRQY1bMgSndkjqb T7kjbnnS/XIFU8J13YffzpHFnAZukKWW2VqZRaks= From: Kieran Bingham To: LibCamera Devel Date: Wed, 30 Jan 2019 11:13:49 +0000 Message-Id: <20190130111349.20891-1-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] clang-format: Enable BreakBeforeTernaryOperators X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2019 11:13:54 -0000 This produces code with the ternary operators at the beginning instead of the end of the line: return caps_.isMultiplanar() ? getFormatMultiplane(fmt) : getFormatSingleplane(fmt); Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- .clang-format | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.clang-format b/.clang-format index 59a61d050e3d..d4669dd93f8d 100644 --- a/.clang-format +++ b/.clang-format @@ -47,7 +47,7 @@ BraceWrapping: BreakBeforeBinaryOperators: None BreakBeforeBraces: Custom #BreakBeforeInheritanceComma: false # Unknown to clang-format-4.0 -BreakBeforeTernaryOperators: false +BreakBeforeTernaryOperators: true BreakConstructorInitializersBeforeComma: false #BreakConstructorInitializers: BeforeComma # Unknown to clang-format-4.0 BreakAfterJavaFieldAnnotations: false