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 28A91200B86 for ; Sun, 4 Sep 2016 04:28:57 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 273D5160ACD; Sun, 4 Sep 2016 02:28: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 6CFBB160ABB for ; Sun, 4 Sep 2016 04:28:56 +0200 (CEST) Received: (qmail 802 invoked by uid 500); 4 Sep 2016 02:28:55 -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 790 invoked by uid 99); 4 Sep 2016 02:28:55 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Sep 2016 02:28:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id C57D61A0897 for ; Sun, 4 Sep 2016 02:28:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.279 X-Spam-Level: * X-Spam-Status: No, score=1.279 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=cloudera-com.20150623.gappssmtp.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id rQLvkRVAMbUS for ; Sun, 4 Sep 2016 02:28:52 +0000 (UTC) Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 8D96A5F233 for ; Sun, 4 Sep 2016 02:28:51 +0000 (UTC) Received: by mail-wm0-f50.google.com with SMTP id 1so84934027wmz.1 for ; Sat, 03 Sep 2016 19:28:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudera-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=BpCYgBBVwqtybSiYDMkl/Vm4kJQpiyUOV4vzVc7xTlI=; b=17EcxmV/NBH/j5Uh8upbiGrGh3vOBkjX+9HyRE2EgpdVRDcFMwfLdTuqdW6Vo4MSMa 6OiUhZ+eTQz5o0ABPrcCfyGBZ6M6WwRN3oaoylXOJID5f/XHo5y60gc9Wq9PQqZjc0lt FdM/LwHhAoHpQldICgwTh9apvTIUoalErhO/9xyA6sV3QYC/cbLfhzohh2S/rvNu2yAA JMUyNxNfzr6sfiJ/vH5m9lkOGxxHmxAqbFP6o5K2v2Lj+WMuwSwn9X27WLwzjrLDKaoo t4zkxTzbpJ1HmXAdCHuoa1+sdlptz7wwmetDpTAdTlvwvQdlz8U+4FyRCUaik4I8UFNA omXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=BpCYgBBVwqtybSiYDMkl/Vm4kJQpiyUOV4vzVc7xTlI=; b=D+/zemQa9y4wZT7zOwb8J3JwvhiHYAtu211W6Cf8gLpq0ro4icjh2GY8keT4iXtRlp hCIufLGUvAvf+tEdqDrqNLa1ckpx3cCcJfPqDzI1Po+9/feEkoIgCKIORMXTclDaSGZa cqFTsAD5uWsatEVw15V9a7y6fipARVYOD72FLV/FZ/fVWczKsmKlAdLZI03RhvZTbnON jiaLH5vArDL3uKFnf1Nb8oCztN82wn0xW660SD/r22SCtLN1YTZpW2CUxzwsyFjcAuD1 pVxL8ROrLfoyZYGgQDHNMHU8fq/6UZ/8TywpLGbnvAYYjPJDwod5JFf1yzn/vW2pGXBs rl4Q== X-Gm-Message-State: AE9vXwOpkxYrHHkANds15RKXovaxOA3pYNLt8TAA+Ia6R0Jhtr/rCQHGtLWp16OU0QWgXD/OSEHbk2ScqwIT16Qn X-Received: by 10.28.111.198 with SMTP id c67mr4438875wmi.34.1472956130981; Sat, 03 Sep 2016 19:28:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.22.12 with HTTP; Sat, 3 Sep 2016 19:28:48 -0700 (PDT) Received: by 10.28.22.12 with HTTP; Sat, 3 Sep 2016 19:28:48 -0700 (PDT) In-Reply-To: References: From: Todd Lipcon Date: Sat, 3 Sep 2016 19:28:48 -0700 Message-ID: Subject: Re: Request for feedback: C++ Style Guide To: "dev@impala" Content-Type: multipart/alternative; boundary=001a1147da7ef51f76053ba55229 archived-at: Sun, 04 Sep 2016 02:28:57 -0000 --001a1147da7ef51f76053ba55229 Content-Type: text/plain; charset=UTF-8 Agreed that the lint script is a bit hacky, but it has very few false positives, mostly false negatives. We run that lint script on every patch in kudu. (Though tuned to disable a few of the more nit picky rules) Todd On Sep 2, 2016 10:24 AM, "Jim Apple" wrote: > I'm in favor of that. It's also worth mentioning that .clang-format is > about what we do going forward, and not carte blanche to send patches > that reformat whitespace in files written before we had .clang-format. > > Some of the style guide, of course, refers to non-whitespace based > rules. Google has a linter script that tries to find divergence form > the standard, but I am dubious of it: > > https://github.com/google/styleguide/blob/gh-pages/cpplint/cpplint.py > > It has known places where it is inaccurate, and it doesn't understand the > AST. > > On Fri, Sep 2, 2016 at 10:03 AM, Tim Armstrong > wrote: > > I'm not sure that the pros and cons are that enlightening. May make sense > > to just remove them - not sure what others think. > > > > For formatting, I think we should consider leaning more on clang-format. > > The discussion around clang-format seemed to be going that direction. > > > > E.g. maybe the rule should be something like "Our .clang-format is the > > source of truth for how to deal with whitespace, except when > clang-format's > > output greatly diverges from the existing code style or common sense. In > > that case, we should update the .clang-format file." > > > > On Fri, Sep 2, 2016 at 9:59 AM, Tim Armstrong > > wrote: > > > >> Yes, several things are completely wrong. E.g. we never use c-style > casts. > >> > >> On Fri, Sep 2, 2016 at 9:38 AM, Jim Apple wrote: > >> > >>> I left a comment on the page - I'm not sure how much these reflect our > >>> actual current practice. > >>> > >>> On Fri, Sep 2, 2016 at 9:36 AM, Lars Volker wrote: > >>> > After some confusion in reviews about how to format code I moved our > >>> > internal C++ Style Guide wiki page to the Apache wiki and updated all > >>> links > >>> > in it. You can find it here: > >>> > > >>> > https://cwiki.apache.org/confluence/pages/viewpage.action? > >>> pageId=65868536 > >>> > > >>> > At some point in time someone seems to have started a list of pro and > >>> cons, > >>> > some of which are worded rather negative. Do we want to revisit those > >>> > comments or the style guide even? > >>> > > >>> > I'm looking forward to any feedback. Thanks, Lars > >>> > >> > >> > --001a1147da7ef51f76053ba55229--