Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp238761ybe; Thu, 12 Sep 2019 19:12:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQkxz34MM4cD59CpCghNnqVHDk8u8q/Xt6a4A8PYOE4uzIYM0Xy+ZMthSZrqVOt9Sgiqsa X-Received: by 2002:a50:ee9a:: with SMTP id f26mr44910623edr.21.1568340775510; Thu, 12 Sep 2019 19:12:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568340775; cv=none; d=google.com; s=arc-20160816; b=bKKUzX0TXOglMEF6oPhrwdF/Ofajypkt+hoOmwRp++PZAOHS0tkhJvn70IjDv8/bQS RIJDxeTvk/O2M6qn6cPEIRgCjBRH7MhI8OUpj+g89LdkSnDp1naLYC4YofFq7BA321Mi NmF9YKOF6YloN9rNSgUofACWBfrluLHKGDaTe/8NcTw6Yvy1glu4a6S6otcIvGbzUys7 P1VpA4iqjtkX0SAreJuN1rpW3BAZAgQXZY18Ba5fuSZL9dVpUWZ4y3paDWWGsGXA5atn zHzzV8e5xMDihOgbSPUnZRbEEsBaHsagbfEwtf4xsNfDEgMv6vcuw70ukYQFJZbCAIG4 JuDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=l9jYNROZBHt3P9GTw+/tuQuygdWZAIaE0EfV7UQlGMQ=; b=Th5m135RkAGf20FSCWdznTDuRb5dsc8NJRSswa7J00IS+o5hSuFusHSpF7dyGIFGza BwF4XRPtHrpXbYqrZKPcZkQ9w+xCy/5ghPy+FZi/WB3xFiZ+AqJGQIDt8CtUgZl2wIMM CllrSmr01+en87I5ty0V7GSEzzqxlSoOdbrZlkYYLEZN38l5F3CpPpli/5LpUmHnSSDa GXAF+B1OiNxJ6810UY01eTrGIihecLffh8Z1MhcAX7YWz/syaB4k/B6iA143M8mIaRMn rgycw1uTnKXuT2iFPgQYcGVeEzv3Ga3Eu4slAEcz70yTd0RWiBlU7EKRDG6pKYFf9wjy ZGRw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id jz14si13716802ejb.32.2019.09.12.19.12.18; Thu, 12 Sep 2019 19:12:55 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727730AbfILX0l (ORCPT + 99 others); Thu, 12 Sep 2019 19:26:41 -0400 Received: from smtprelay0148.hostedemail.com ([216.40.44.148]:42011 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726905AbfILX0l (ORCPT ); Thu, 12 Sep 2019 19:26:41 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay05.hostedemail.com (Postfix) with ESMTP id 9A7731801A086; Thu, 12 Sep 2019 23:26:39 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::,RULES_HIT:41:355:379:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1538:1593:1594:1711:1714:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3350:3622:3865:3867:3871:3872:3874:4321:4470:5007:6691:10004:10400:10848:11026:11232:11658:11914:12109:12297:12663:12740:12760:12895:13069:13311:13357:13439:14181:14659:14721:21080:21627:30054:30090:30091,0,RBL:47.151.152.152:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:15,LUA_SUMMARY:none X-HE-Tag: skin44_742702c58da54 X-Filterd-Recvd-Size: 1793 Received: from XPS-9350.home (unknown [47.151.152.152]) (Authenticated sender: joe@perches.com) by omf10.hostedemail.com (Postfix) with ESMTPA; Thu, 12 Sep 2019 23:26:38 +0000 (UTC) Message-ID: Subject: clang-format and 'clang-format on' and 'clang-format off' From: Joe Perches To: Miguel Ojeda , Nick Desaulniers , llvm-dev@lists.llvm.org Cc: Jeff Moyer , Dan Williams , linux-nvdimm , linux-kernel , Dan Carpenter Date: Thu, 12 Sep 2019 16:26:37 -0700 In-Reply-To: References: <4df0a07ec8f1391acfa987ecef184a50e7831000.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.32.1-2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2019-09-12 at 23:58 +0200, Miguel Ojeda wrote: > On Thu, Sep 12, 2019 at 11:08 PM Joe Perches wrote: > > Marking sections _no_auto_format_ isn't really a > > good solution is it? > > I am thinking about special tables that are hand-crafted or very > complex macros. For those, yes, I think it is a fine solution. Can the 'clang-format on/off' trigger be indirected into something non-clang specific via a macro? Not every project is going to use only the clang-format tool.