Eclipse call hierarchy skips calls in undefined #ifdef regions
- by stupakov
Hi all,
The "call hierarchy" and "declaration" features in Eclipse CDT omit results that exist in undefined (greyed out) #ifdef regions.
Example:
void blah(void) {
#ifndef ABC
foo();
#else //line is greyed out
bar(); //line is greyed out
#endif //line is greyed out
}
The call hierarchy for foo() will list blah() as a caller; the call hierarchy for bar() will not list blah().
I'm not expecting it to do full resolution of which #define blocks will get compiled, I simply would like it to return all calls/declarations of the function I'm searching for, regardless of the #define blocks that surround it.
Other IDEs such as SlickEdit are able to do this.
Does anyone know of a way to get Eclipse to adopt this behavior?
Thanks.