Say you have a C project with tons of files, and tons of configurations managed by usign the -D
option in GCC to define some flags.
In my particular case, I have loads of files with that kind of stuff:
void foo( sometype *x)
{
do_stuff_with_x(x);
#ifdef MY_FLAG
do_additional_stuff(x);
#endif
#ifdef OTHER_FLAG
do_some_other_stuff(x);
#endif
}
Now, whenever I change one of the flags, I need to clear the project and recompile all the source code because I cannot selectively touch the files that use this flag.
Is it possible, using Eclipse under Windows, to do that? Maybe an Eclipse plugins, or whatever.
For linux, I might use some mix of grep
, find
and touch
, but on Windows I have no idea.