From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta036.useast.a.cloudfilter.net (omta036.useast.a.cloudfilter.net [44.202.169.35]) by sourceware.org (Postfix) with ESMTPS id E179A3858C60 for ; Tue, 5 Dec 2023 14:36:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E179A3858C60 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E179A3858C60 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.35 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701786981; cv=none; b=TE0nNS9BAqjypCR0ChhuowHGaGnjorms2HE3mK8JIkkttXGzktMzi16vPUS+pgaKbFzWSkS6KWyh/oEfJ4sRGqpn3sKy5mO51hZ2wt2HDUX1UDa8cPoMKpqBRlBc0ZMhYzk6PUqXQFYRwA/4YpU+BS6M5i1cJtxEkDitpvjl1xs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701786981; c=relaxed/simple; bh=8u0tuMh3TF1/xMxHheaZAIF284QZ238vl1rNAsXLFY8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=kRv8YRAwwsE4qUxbHgz2OBamjs7GIdhKhQPPcfyuDGA3vXxnSywdWHR1LF5SFJHpWcJ6FhYLDzIiutOXtVWndMg7q1ksVYHbnzNmuDTh+KF2lnff96zN8Sj4ghCv9ynZS7GFOrvv54PGWIZ3XHOL+iHP0C+qq1hyUVDgLbbDMOA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-6006a.ext.cloudfilter.net ([10.0.30.182]) by cmsmtp with ESMTPS id AKjErV4t8gpyEAWX1rPnpt; Tue, 05 Dec 2023 14:36:16 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id AWX0r9HoMGKIcAWX1rL8yF; Tue, 05 Dec 2023 14:36:15 +0000 X-Authority-Analysis: v=2.4 cv=E+beGIRl c=1 sm=1 tr=0 ts=656f355f a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=OWjo9vPv0XrRhIrVQ50Ab3nP57M=:19 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=e2cXIFwxEfEA:10 a=Qbun_eYptAEA:10 a=QyXUC8HyAAAA:8 a=HnrJAcvuojBJQlXHyFoA:9 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=fo0wlqqk4R1xp35bP1B0JHgc/ZwKRvBv0EWJiVlqASU=; b=se4+Fjf+moYavoME/vAk48ljcY 9xkHxGsXK9WpRxHX8l/F81hE4354YXe77wphwSeTRWQfpx/T1L0TvlH//Bxqywp+pa/kOHUOwCBwa k5F9lTekgaiud+8+WJ6MaDlTg; Received: from 97-122-77-73.hlrn.qwest.net ([97.122.77.73]:59652 helo=murgatroyd) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1rAWX0-001ODH-1x; Tue, 05 Dec 2023 07:36:14 -0700 From: Tom Tromey To: "Aktemur, Tankut Baris" Cc: "gdb-patches@sourceware.org" Subject: Re: Coding style for parameterless functions References: X-Attribution: Tom Date: Tue, 05 Dec 2023 07:36:13 -0700 In-Reply-To: (Tankut Baris Aktemur's message of "Tue, 5 Dec 2023 11:55:00 +0000") Message-ID: <87h6kwlns2.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.122.77.73 X-Source-L: No X-Exim-ID: 1rAWX0-001ODH-1x X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-77-73.hlrn.qwest.net (murgatroyd) [97.122.77.73]:59652 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfLrORu3H+KQs9KbdFtiet7Zod+OuPfM2g4hx9QPhSmm4R2JcNSq1AEUsn7oyuRD8Lni1hcg3ERVPf9w3rFGEvLX5P4xoUykU9O9Z51CjgV6Oa/pnGmZa DnS7bgBD9rZB5bgZR58ffR1V1FUmtXqDwKArnkU55NSK4j/iXZMf1D1awdxEfyAovcVhCh789f4d7P9Q/Lkb7IYBc0TT4haBXlg= X-Spam-Status: No, score=-3017.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,JMQ_SPF_NEUTRAL,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,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: >>>>> Aktemur, Tankut Baris writes: > /* Declaration */ > static void foo (void); > I couldn't find the exact email, but I remember quite well that in a > discussion it was stated we should no longer use the void keyword > since we started coding in C++. > What's the current coding style that should be followed? Use () in C++ code. "(void)" is a C-ism. > Also, the testsuite coding style document [2] explicitly states to write > "(void)". But note that input programs in the testsuite are usually C > programs. Yes, for C programs you have to do this. thanks, Tom