From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa2.mentor.iphmx.com (esa2.mentor.iphmx.com [68.232.141.98]) by sourceware.org (Postfix) with ESMTPS id 3E62E3858D37 for ; Thu, 22 Jun 2023 21:43:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3E62E3858D37 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="6.01,150,1684828800"; d="scan'208";a="10876507" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa2.mentor.iphmx.com with ESMTP; 22 Jun 2023 13:43:54 -0800 IronPort-SDR: mj/qmn8e5PxNK6vcaPKy+sBaKgkMf1VQOJ1gsL7yT5ojyaxP/eOUKGtY7jqaxx5StfP5ZB5nAx PzE5YOa5MP5y0Lwa8BDe2N3cBZI9gQz7mdYsFCkxiBlP1dzmxTFuC/RaJynzjV8FQaWibsgaC/ LVIdxuTX6HNP2dUp6E5bkMJYOXQvOeBvosTOCOGFlwB7O7y26BiZHvk9+Tr7MrarvAdiooRt0p G3Hqn1oRAqy3D3TQN9dW5hei6yM1ZJPf/7R14d/kkptxU6ETzvHYqUlA0jupyPVNNUCupErus6 joQ= Date: Thu, 22 Jun 2023 21:43:40 +0000 From: Joseph Myers To: Paul Eggert CC: Carlos O'Donell , Zack Weinberg , Yonggang Luo , GNU libc development , Florian Weimer Subject: Re: [PATCH v2 1/4] clang-format: should format with 2 space and do not usage tab In-Reply-To: <92301a6b-5f19-5a8a-fcc4-4a72e96d5a03@cs.ucla.edu> Message-ID: References: <20230620171731.230-1-luoyonggang@gmail.com> <20230620171731.230-2-luoyonggang@gmail.com> <2c0b7268-4efd-4ace-beef-9155501ed700@app.fastmail.com> <6cea509b-500-3cfb-edd6-afea9a859022@codesourcery.com> <92301a6b-5f19-5a8a-fcc4-4a72e96d5a03@cs.ucla.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-11.mgc.mentorg.com (139.181.222.11) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) X-Spam-Status: No, score=-3105.8 required=5.0 tests=BAYES_00,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,KAM_SHORT,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Wed, 21 Jun 2023, Paul Eggert wrote: > On 2023-06-21 10:35, Joseph Myers wrote: > > I don't think the convention of tabs for every eight columns is > > *documented* GNU style, > > Actually, it's documented to be 8: > > "Calculate column numbers assuming that space and all ASCII printing > characters have equal width, and assuming tab stops every 8 columns." > > https://www.gnu.org/prep/standards/html_node/Errors.html I think that's about a documented convention for *reading* files - not a convention that when *writing* C source files you use tabs rather than spaces for a multiple of 8 leading blank columns. -- Joseph S. Myers joseph@codesourcery.com