Related articles |
---|
detect hardcodings in C/C++ natkhatbandar@yahoo.com (2004-08-25) |
Re: detect hardcodings in C/C++ codeworker@free.fr (2004-09-03) |
From: | natkhatbandar@yahoo.com (Zombie) |
Newsgroups: | comp.compilers |
Date: | 25 Aug 2004 14:54:45 -0400 |
Organization: | http://groups.google.com |
Keywords: | lex, C, comment |
Posted-Date: | 25 Aug 2004 14:54:45 EDT |
Hi,
I wish to scan C/C++ code and detect any hard coded statements in it,
like the '1000' in:
char str[1000];
or the '10' in:
int i = 10;
I don't have the slighest idea about how to do it. (I have never
worked with compiler stuff)
Any idea what options I have?
Thanks.
[You could practically do that with grep, with a prepass to get rid
of the comments. -John]
Return to the
comp.compilers page.
Search the
comp.compilers archives again.