I recall clang having more restrictions on redefining keywords.

Mike

> -----Original Message-----
> From: Oliver Smith-Denny <o...@linux.microsoft.com>
> Sent: Monday, October 21, 2024 1:38 PM
> To: Kinney, Michael D <michael.d.kin...@intel.com>;
> devel@edk2.groups.io; pedro.falc...@gmail.com
> Cc: rebe...@bsdio.com
> Subject: Re: [edk2-devel] [edk2-CCodingStandardsSpecification PATCH 1/1]
> Prefer use of `static` C keyword over EDK2 type `STATIC`
> 
> On 10/21/2024 1:35 PM, Kinney, Michael D wrote:
> > Would it help if code was modified to completely remove the use of
> > static in local variables and enforce that going forward and limit
> > use of static to functions and global variables?
> >
> 
> We'd have to test further, but I believe that would allow Pedro's
> scheme of simply `#define static <nothing>` to work. I ran a
> quick godbolt test and it seems MSVC is also okay with that.
> 
> Oliver



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#120643): https://edk2.groups.io/g/devel/message/120643
Mute This Topic: https://groups.io/mt/108941574/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to