From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 4C8B67803CE for ; Mon, 14 Oct 2024 16:47:37 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=OtF48BbAkc/CIZs1WxHW6yJi8iXRdRCphCWx5MyQMNM=; c=relaxed/simple; d=groups.io; h=Feedback-ID:Message-ID:Date:MIME-Version:User-Agent:Subject:To:References:From:In-Reply-To:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20240830; t=1728924456; v=1; x=1729183655; b=Spd1Cws3iiybEHq9Pgw49/gAVxqCJ9Vm7R19I+DRcwB9dWYn69FernYjeoE35dPW9JEon1nC d6fZ/4Vo0btahGzd8SYMaJpNUbt6imH4cjDnSugt2+RxMpNuoYP+GZHoU99mZFNVtxJpdCbdH1F gXm2mkjwgh9fobV4ugIMakEGLQVV2Gvbb3G5nas5w6d8sSiKQsUdjGHOErOkLdeMcS6NcWySMAL eSoFn/IP77ToNaxrV16LzpypGdeBYCQzIIIXgKT0j/Lauokp70p4yQXFirFoaxwCpaMjUXWGduT MIfLs4v4WWUNdgmkTW731iF8POFm0/K78cajHfAwifyLw== X-Received: by 127.0.0.2 with SMTP id 4Z4LYY7687511xKkTn05k1XH; Mon, 14 Oct 2024 09:47:35 -0700 X-Received: from fhigh-a3-smtp.messagingengine.com (fhigh-a3-smtp.messagingengine.com [103.168.172.154]) by mx.groups.io with SMTP id smtpd.web11.113.1728924454876856307 for ; Mon, 14 Oct 2024 09:47:35 -0700 X-Received: from phl-compute-09.internal (phl-compute-09.phl.internal [10.202.2.49]) by mailfhigh.phl.internal (Postfix) with ESMTP id 114901140083; Mon, 14 Oct 2024 12:47:34 -0400 (EDT) X-Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-09.internal (MEProxy); Mon, 14 Oct 2024 12:47:34 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdeghedguddtgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtvdej necuhfhrohhmpeftvggsvggttggrucevrhgrnhcuoehrvggsvggttggrsegsshguihhord gtohhmqeenucggtffrrghtthgvrhhnpeejhefgtdeludeitefffeevteduhfeiffdtieeu leelgfevuddthffhudegfeelheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehrvggsvggttggrsegsshguihhordgtohhmpdhnsggprhgtphht thhopeegpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehoshguvgeslhhinhhugi drmhhitghrohhsohhfthdrtghomhdprhgtphhtthhopeguvghvvghlsegvughkvddrghhr ohhuphhsrdhiohdprhgtphhtthhopehsphgsrhhoghgrnhesohhuthhlohhokhdrtghomh dprhgtphhtthhopehmihgthhgrvghlrdgurdhkihhnnhgvhiesihhnthgvlhdrtghomh X-ME-Proxy: Feedback-ID: i5b994698:Fastmail X-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 14 Oct 2024 12:47:33 -0400 (EDT) Message-ID: <4e1f3410-b1f6-4f26-a04f-67f2a9cdcfcb@bsdio.com> Date: Mon, 14 Oct 2024 10:47:16 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [edk2-devel] [edk2-CCodingStandardsSpecification PATCH 1/1] Prefer use of `static` C keyword over EDK2 type `STATIC` To: Oliver Smith-Denny , devel@edk2.groups.io, Sean Brogan , Michael Kinney References: <20241011012040.274642-1-rebecca@bsdio.com> <2b59d0dd-3426-4741-a2a9-18275dd613b5@bsdio.com> <73f096d9-37fc-4b9c-9169-7f70268abdcf@linux.microsoft.com> From: "Rebecca Cran" In-Reply-To: <73f096d9-37fc-4b9c-9169-7f70268abdcf@linux.microsoft.com> Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Mon, 14 Oct 2024 09:47:35 -0700 Resent-From: rebecca@bsdio.com Reply-To: devel@edk2.groups.io,rebecca@bsdio.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: yADrbbkwrma4hJX5aylFcDxox7686176AA= Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240830 header.b=Spd1Cws3; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io On 10/14/24 9:22 AM, Oliver Smith-Denny wrote: > In GoogleTest, you often cannot directly include the C file in the > GoogleTest file, because C++ complains about many Cisms, mostly > our use of casting. Do you have an example of that? Also, I've seen suggestions (I think on the FreeBSD mailing lists) of=20 using C++ as "a better C". That is, not using any C++ specific features=20 but building the code as C++ because apparently you get better code=20 checking and diagnostics with it. Though you do lose some features like=20 implicit casts from void* when using C++. Rebecca -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#120621): https://edk2.groups.io/g/devel/message/120621 Mute This Topic: https://groups.io/mt/108941574/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-