J
Jonathan Lee
Hi all,
anyone know of a tool that can be used to (automatically) edit C++
source to change data? For example, I want to change "i" in the
following to 3
int i = 6; // wanna change this to 3
/* but not the following 'cause its in a comment:
double i = 0.0;
*/
Or change an array or struct, etc? A naive replacement of "stuff" in
"type identifier = stuff;" works fine, but isn't robust against the
comment case above or other possibilities.
Is there a parser for C++ that supports this? or any other tool
someone can recommend?
anyone know of a tool that can be used to (automatically) edit C++
source to change data? For example, I want to change "i" in the
following to 3
int i = 6; // wanna change this to 3
/* but not the following 'cause its in a comment:
double i = 0.0;
*/
Or change an array or struct, etc? A naive replacement of "stuff" in
"type identifier = stuff;" works fine, but isn't robust against the
comment case above or other possibilities.
Is there a parser for C++ that supports this? or any other tool
someone can recommend?