Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #381999
| Path | csiph.com!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Keith Thompson <Keith.S.Thompson+u@gmail.com> |
| Newsgroups | comp.lang.c |
| Subject | Re: Static analysis tools to catch use of reserved identifiers? |
| Date | Wed, 07 Feb 2024 08:38:46 -0800 |
| Organization | None to speak of |
| Lines | 21 |
| Message-ID | <87zfwcgrft.fsf@nosuchdomain.example.com> (permalink) |
| References | <16NwN.343220$xHn7.45376@fx14.iad> |
| MIME-Version | 1.0 |
| Content-Type | text/plain |
| Injection-Info | dont-email.me; posting-host="2a9b0d846ed1f5597fe0b0ae18bc496c"; logging-data="1588229"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/XZoNTZlDsLrrsAM2gxfLv" |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
| Cancel-Lock | sha1:hpMN3OcrR5zSYme828gRpKEETFY= sha1:JEltwuxrKm6wz4f+CcZpnlFP4eo= |
| Xref | csiph.com comp.lang.c:381999 |
Show key headers only | View raw
Anthony Cuozzo <anthony@cuozzo.us> writes:
> My inspiration is this post: https://news.ycombinator.com/item?id=39275575
According to that post clang's "-Wreserved-identifier" option warns
about identifiers that are reserved by the C standard.
> I'm interested in knowing if there are any static analysis tools which
> catch uses of reserved identifier patterns under standard C in
> addition to those reserved under POSIX.
>
> (Please forgive me if "identifier" is the wrong term here. I'm
> interested in looking at variable names, function names, typedef
> names, struct/union/enum (and their members) names, preprocessor macro
> names, etc.)
If I understand you correctly, "identifier" is exactly the right term.
--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Medtronic
void Void(void) { Void(); } /* The recursive call of the void */
Back to comp.lang.c | Previous | Next — Previous in thread | Find similar | Unroll thread
Static analysis tools to catch use of reserved identifiers? Anthony Cuozzo <anthony@cuozzo.us> - 2024-02-07 10:13 -0500 Re: Static analysis tools to catch use of reserved identifiers? Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2024-02-07 15:19 +0000 Re: Static analysis tools to catch use of reserved identifiers? Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-02-07 08:38 -0800
csiph-web