Is replacing **"symbol_old_name"** string with **"symbol_new_name"** string with **"Match only a whole word"** option selected in a C++ source code file actually a renaming of that symbol (variable, function, class, etc.) in Geany?
It doesn't do semantic renaming, just textual replacement. For example if you did such a replacement and had one class with a member variable named `Size` and another class with a static method `Foo::Size()`, and you replace `Size`, both will get renamed, in addition to the word `Size` in any comments, parameter names, etc. Not sure if that's what you were asking?
Yes, that's what I was asking about. So is it possible to rename symbols in C++ **semantically**?
No it's not, Geany doesn't know about C++ semantics. At one point I was writing a plugin using libclang that among other things would allow this sort of semantic refactoring, but I've mostly abandoned it.
Closed #1883.
Thank you very much for the elaboration...
github-comments@lists.geany.org