I recall clang having more restrictions on redefining keywords.

Mike

> -----Original Message-----
> From: Oliver Smith-Denny <[email protected]>
> Sent: Monday, October 21, 2024 1:38 PM
> To: Kinney, Michael D <[email protected]>;
> [email protected]; [email protected]
> Cc: [email protected]
> 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: [email protected]
Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to