Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #381999

Re: Static analysis tools to catch use of reserved identifiers?

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 2024-02-07 08:38 -0800
Organization None to speak of
Message-ID <87zfwcgrft.fsf@nosuchdomain.example.com> (permalink)
References <16NwN.343220$xHn7.45376@fx14.iad>

Show all headers | 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 | NextPrevious in thread | Find similar | Unroll thread


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