On Saturday, 25 August 2012 at 22:32:10 UTC, Jacob Carlborg wrote:
On 2012-08-25 21:39, Walter Bright wrote:
How many IDEs can handle the C preprocessor, with token
pasting and all,
when refactoring?
1. Any IDE based on libclang should be able to handle this.
Xcode 4 uses libclang.
2. The C preprocessor is no excuse to why we shouldn't have
good refactoring tools for D.
For (1), I think Walter is referring to something like this:
#define GLOBAL(name) g_ ## name
int GLOBAL(foo);
g_foo = 123;
I don't think XCode would allow you to right-click the g_foo and
rename it. It's not possible in the general case.