|
|
|
|
|
by bayindirh
248 days ago
|
|
If Eclipse's archaic(!) variable renaming feature for C++ can distinguish between related and unrelated variables which have the same name, you can implement this thing in almost any language. Eclipse CDT has a real-time static analyzer for the code you're working on though. It's not as naive as it looks from a distance. |
|
In other words are the two pointers actually pointing to the same variable? There's no way to know. When you select one pointer, should the other also be highlighted?
But in Rust you cannot have two mutable references to a single variable so the above cannot happen.
Variable renaming is a much much simpler task than this. Of course it is archaic and has existed for a long time.