Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AE23217E55 for ; Sat, 4 Oct 2014 06:58:06 +0000 (UTC) Received: (qmail 65206 invoked by uid 500); 4 Oct 2014 06:58:06 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 65146 invoked by uid 500); 4 Oct 2014 06:58:06 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 65131 invoked by uid 99); 4 Oct 2014 06:58:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Oct 2014 06:58:06 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of apache-dev@m.gmane.org designates 80.91.229.3 as permitted sender) Received: from [80.91.229.3] (HELO plane.gmane.org) (80.91.229.3) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Oct 2014 06:58:00 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XaJHe-0000bm-1y for dev@httpd.apache.org; Sat, 04 Oct 2014 08:57:38 +0200 Received: from aorleans-552-1-75-26.w92-140.abo.wanadoo.fr ([92.140.218.26]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 04 Oct 2014 08:57:38 +0200 Received: from christophe.jaillet by aorleans-552-1-75-26.w92-140.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 04 Oct 2014 08:57:38 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: dev@httpd.apache.org From: Christophe JAILLET Subject: Re: Why does .indent.pro not really resemble our style? Date: Sat, 04 Oct 2014 08:57:23 +0200 Lines: 34 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: aorleans-552-1-75-26.w92-140.abo.wanadoo.fr User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 In-Reply-To: X-Antivirus: avast! (VPS 141003-1, 03/10/2014), Outbound message X-Antivirus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org Le 01/07/2014 02:54, Eric Covener a écrit : > Why does .indent.pro all over the tree not really resemble our style > too closely? If I re-indent any file, lots of stuff is changed (* > operator, any struct, etc). A good example is mod_setenvif.c According to http://httpd.apache.org/dev/styleguide.html, only -nut seems to be missing. Without it, spaces are turned into tabs. In order to have less "* operator" changes, -T apparently needs to be used. I added -Tapr_pool_t in .indent.pro in modules/metadata and it removed a few of them. But IMHO, having to manage manually the list of these -T would be a nightmare. Moreover, most of the directories don't have .indent.pro file. I've found only 17. Finally, changes made by indent are not always accurate. Options should maybe be tweaked to get a slightly better output but manual review of changes is still needed. In order to ease the use of indent all over the tree, we could: - remove .indent.pro files - keep only one in the root directory, add the missing -nut (and tweak it with some useful -T entries) - document how to use |INDENT_PROFILE for users that want to use indent, OR that the .indent.pro file has to be copied in their home directory CJ |