Hi,
I've written some codes (actually quite a lot, around 30 files) ... in Linux ... but i would like to change names of my Classes, Variable Names and Functions, any way to change it quickly and safe?
Any tools allow me to manage that?
Thanks
Jeff
This is a discussion on How to manage variable and function names within the C++ Programming forums, part of the General Programming Boards category; Hi, I've written some codes (actually quite a lot, around 30 files) ... in Linux ... but i would like ...
Hi,
I've written some codes (actually quite a lot, around 30 files) ... in Linux ... but i would like to change names of my Classes, Variable Names and Functions, any way to change it quickly and safe?
Any tools allow me to manage that?
Thanks
Jeff
Eclipse is an IDE that has this feature, and as far as I know, it's free too.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
You're basically talking about a refactoring tool. A search of the Web brings up this list of refactoring tools. The good part is that it lists 3 for C++. The bad part is that it only lists 3 for C++.
Now, if only those guys over at Netbeans ported over their refactoring functionality for their C/C++ plugin...Eclipse is an IDE that has this feature, and as far as I know, it's free too.
C + C++ Compiler: MinGW port of GCC
Version Control System: Bazaar
Look up a C++ Reference and learn How To Ask Questions The Smart Way
I think Turbo C++ had that feature. Though I'm not sure if you should depend on it for anything else (the editor is not bad, but I'm not sure about the compiler).
EDIT: sorry, forgot you wanted a utility for Linux. I think Turbo C++ is for Windows only.
Last edited by Abda92; 01-26-2008 at 11:42 AM.
The compiler is worse than the editor (by far)![]()
For information on how to enable C++11 on your compiler, look here.
よく聞くがいい!私は天才だからね! ^_^
By the way, Emacs has some pretty good search/replace facilities - and as long as you rename one thing at a time, you can check with the compiler that you got it right...
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
That refactoring tool list I linked to lists Xrefactory, an emacs plugin, as one of the tools for C++.
C + C++ Compiler: MinGW port of GCC
Version Control System: Bazaar
Look up a C++ Reference and learn How To Ask Questions The Smart Way
Thanks, Witch,
This is a great help ...![]()
the Eclipse is easier to learn, Xrefactory is a bit complicated for me...
Eclipse C++ IDE is perfect
Perfect? I doubt that. Nothing is perfect, and Eclipse even less so than other, specialized, IDEs I would think.
For information on how to enable C++11 on your compiler, look here.
よく聞くがいい!私は天才だからね! ^_^
Haha, Elysia took it quite seriously ... i should have said "perfect for my needs, my skills, and my time " ...![]()
Last time I tried to use Eclipse, it was an extreme pain to set up. So I can't quite call it perfect. Though it wasn't for C++, I would image it's still the same.
And I don't think there's a compiler either? So that means manual compiling? Fun...
For information on how to enable C++11 on your compiler, look here.
よく聞くがいい!私は天才だからね! ^_^
http://wascana.sourceforge.net/
Download, install, enter your code, press build.
Really, i didn't have difficulty. Download, install, new project, add file system, Right click, refactor .. that's it ... :|