Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8C1CE200B63 for ; Mon, 15 Aug 2016 23:49:57 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8AACF160AA7; Mon, 15 Aug 2016 21:49:57 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D2E51160A8A for ; Mon, 15 Aug 2016 23:49:56 +0200 (CEST) Received: (qmail 53629 invoked by uid 500); 15 Aug 2016 21:49:56 -0000 Mailing-List: contact dev-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@impala.incubator.apache.org Delivered-To: mailing list dev@impala.incubator.apache.org Received: (qmail 53618 invoked by uid 99); 15 Aug 2016 21:49:55 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Aug 2016 21:49:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 6EC60185F5E for ; Mon, 15 Aug 2016 21:49:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.362 X-Spam-Level: X-Spam-Status: No, score=0.362 tagged_above=-999 required=6.31 tests=[RDNS_DYNAMIC=0.363, SPF_PASS=-0.001] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id RuQfS6f_4y5B for ; Mon, 15 Aug 2016 21:49:53 +0000 (UTC) Received: from ip-10-146-233-104.ec2.internal (ec2-75-101-130-251.compute-1.amazonaws.com [75.101.130.251]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id EE3055F47A for ; Mon, 15 Aug 2016 21:49:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by ip-10-146-233-104.ec2.internal (8.14.4/8.14.4) with ESMTP id u7FLnpm0011652; Mon, 15 Aug 2016 21:49:51 GMT Message-Id: <201608152149.u7FLnpm0011652@ip-10-146-233-104.ec2.internal> Date: Mon, 15 Aug 2016 21:49:51 +0000 From: "Henry Robinson (Code Review)" To: Jim Apple , impala-cr@cloudera.com, dev@impala.incubator.apache.org CC: Tim Armstrong , Lars Volker Reply-To: henry@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_Add_=2Eclang-format_for_Impala=27s_C++_style=0A?= X-Gerrit-Change-Id: I274c5993c7be344fc4b7729d21a13da993f9f3aa X-Gerrit-ChangeURL: X-Gerrit-Commit: 73abd8f42796236c0bc34b5b4a7e286fe3de5f34 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.12.2 archived-at: Mon, 15 Aug 2016 21:49:57 -0000 Henry Robinson has posted comments on this change. Change subject: Add .clang-format for Impala's C++ style ...................................................................... Patch Set 1: I ran this over a few patches. Some small things I noticed: 1. The arg-breaking behaviour is different: the formatter prefers to put all arguments on one line even if that means adding a newline before the first one. 2. for (auto& foo: bar) -> for (auto& foo : bar). I don't care about this one, all the same to me. 3. Indentation on constructor member initialisation lists is by two spaces, not four (i.e. line up with the ':'). Again, I don't care about that. I don't see any problems with these small changes, but you might want to socialise this a bit on impala-dev@ before committing the formatter. It would be excellent for this to be as close to our canonical style as possible, even if that means changing our canonical style a bit. -- To view, visit http://gerrit.cloudera.org:8080/3886 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I274c5993c7be344fc4b7729d21a13da993f9f3aa Gerrit-PatchSet: 1 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Jim Apple Gerrit-Reviewer: Henry Robinson Gerrit-Reviewer: Jim Apple Gerrit-Reviewer: Lars Volker Gerrit-Reviewer: Tim Armstrong Gerrit-HasComments: No