Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp3399021ybe; Sun, 15 Sep 2019 14:40:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqxreCqiDyQsRk1PnsqqekJILhaBhHH7Thv7NCukzgoHm1y6fwZ6fP7ljdbhYoqkGtsr5F2E X-Received: by 2002:a17:906:480b:: with SMTP id w11mr49380253ejq.137.1568583628552; Sun, 15 Sep 2019 14:40:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568583628; cv=none; d=google.com; s=arc-20160816; b=Q+qs/Ee3h6gF7LD9Tkt3GtJi9f2jLWL9YJKCps8KkHetT+/NH0QqqxoM1zxTauUw0w e2WZ2xqTRpcnXA/0xPaQZ0VQ2z6ZmDNbxbWB/yM3y3e0v9d0GuQF9Dy7Iphtf5FOYikE trYblsp8j6OC+BaAXh+Bcry2TkJhN52LzNOkxsaimba6hrdnsvZSXhzBL5Uai/rndPpW PK/HPjo7yPLX6ubAxtdKlQS6o2r2mpRMv4vcN7ZwRnmCC2XRqcCXibyhv38+Mv8Xseld 2BETs1gaU3sXjq6p5KVynt988g/LaLi8xwQnelom2rKxUvMtZZunD5RRi8gEZrKPWlWe sO6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=dbnIhtM2BKG6IYVDdOCp6G8vpQKdSMQTGQ4f3pGk7vs=; b=pxNuuaJYDfKl7rFc36Sbu7fg5R/BTYaMAArsjVwHidxfuLXUQTZppc4BrgUjtiOuHn tBcugjayGFPw+0Co9K6lm8Du5XYN0VpkCcXbaKvXqt4WFydGcPnxq/RH37ujLQS9r8LG 18Ijk/EYHzqkoPFNJGroTX/a87iQLS5MxHt6ySPH4P0nJ/56XQtY3y4F8gQLzjoWSRv8 MNd7jO+ZDif8P3K6ehsjmJjFs5GtaFdpPlSEbF3bHeTol+EpK7x9QBAx/RPMfAdvcYjV bmYUpBjTmLDRGJ8E8FS2djr3pnNJUR4MiwEy5NStb2gGPXCYdCcOt34CSPI6t+YS1ei0 wZFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rd8EsNf9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k19si17478756eds.71.2019.09.15.14.40.05; Sun, 15 Sep 2019 14:40:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rd8EsNf9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726321AbfIOSZy (ORCPT + 99 others); Sun, 15 Sep 2019 14:25:54 -0400 Received: from mail-lf1-f51.google.com ([209.85.167.51]:36780 "EHLO mail-lf1-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725270AbfIOSZy (ORCPT ); Sun, 15 Sep 2019 14:25:54 -0400 Received: by mail-lf1-f51.google.com with SMTP id x80so25721646lff.3 for ; Sun, 15 Sep 2019 11:25:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dbnIhtM2BKG6IYVDdOCp6G8vpQKdSMQTGQ4f3pGk7vs=; b=rd8EsNf9yf0dbuq9g/TOSPhliI7d5mEgLIU6opvAUyXGQMgiDsdhhlM5NPYE4fx4fV 1oIdwGiYWhlCrYOTnrtb9KqomL1oZuScESRZ2MCh/0i4A9dsY3NTv4oKmBhcBEZf9oYn l2awC19NQnKyP2X4nyreahL+qcvbxKzIwPPwfurn4sgESw4OpLCUT9SZowM4Ys9RChKO FeK/6/MJ+iT9QD3ZFQ85VXaXXp5wbMSQU9sKjCI//9gHJVJwONQlxeBuTzDLAUdIjfbq 5Nu8HSKS1g6PT01zTy6vWgPv6BYBOI4cZnO+nLVNgPNTjeubShzLmv1gaAmvN2Rk7xWl IqyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dbnIhtM2BKG6IYVDdOCp6G8vpQKdSMQTGQ4f3pGk7vs=; b=rPupUmjtFb9cRSf63sCOvKobNO5aZfTMGqhA2bG1AZwxJyaLq6jjtqZ2rG81ailaSJ aP16pS6zc52rH8BCbBV/MHqCRSTGlo/qdgxgDNDbz18LFcV5/MHGYFnTh3iPNSjZ7ZzJ vRJ2YI82J7yDgMyylTQnQ2iFx7w8CWH/zajlxaNl6d5phAOnG4LDXyrNMLgarQ8S5Xv0 b/c28zJ0BYGm2bhllZXR7cZwrSv/q097MpP5IMj4TRsb4PNgOdWxV+ePhYPHEFng/EY4 wzHnmMn5YaFCieKze5qvO8lnPy562IwmGR21RSiRKwGaAuypxH3e+i6F1chSLDcu0u3x EGdA== X-Gm-Message-State: APjAAAVKa38RswfuKwGVhrGjU6QR1/6B1UaTD1KRNYMsgc0NxNX7koX2 rAKHbIAHuIVZ+KEnB2xlqB79uGJGTxQ97uAZKZY= X-Received: by 2002:ac2:4902:: with SMTP id n2mr37085890lfi.0.1568571952132; Sun, 15 Sep 2019 11:25:52 -0700 (PDT) MIME-Version: 1.0 References: <4df0a07ec8f1391acfa987ecef184a50e7831000.camel@perches.com> In-Reply-To: From: Miguel Ojeda Date: Sun, 15 Sep 2019 20:25:41 +0200 Message-ID: Subject: Re: clang-format and 'clang-format on' and 'clang-format off' To: Joe Perches Cc: Nick Desaulniers , llvm-dev@lists.llvm.org, Jeff Moyer , Dan Williams , linux-nvdimm , linux-kernel , Dan Carpenter Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 13, 2019 at 1:26 AM Joe Perches wrote: > > Not every project is going to use only the clang-format tool. Why? The end goal would be to enforce all code to be running under the same formatting rules (which, in practice, means the same tool at the moment). Note that you can use clang-format with most editors (including vim, emacs, VS, VSCode, XCode, Sublime, Atom...). Cheers, Miguel