detect hardcodings in C/C++ (Zombie)
25 Aug 2004 14:54:45 -0400

          From comp.compilers

Related articles
detect hardcodings in C/C++ (2004-08-25)
Re: detect hardcodings in C/C++ (2004-09-03)
| List of all articles for this month |

From: (Zombie)
Newsgroups: comp.compilers
Date: 25 Aug 2004 14:54:45 -0400
Keywords: lex, C, comment
Posted-Date: 25 Aug 2004 14:54:45 EDT

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?

[You could practically do that with grep, with a prepass to get rid
of the comments. -John]

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.