Hi, I use Keil MDK 5.20 for ARM. I usually work with Cortex-M0, M3, and M4F MCUs.
If you use Eclipse, it has some refactoring features such as changing methods/functions names in every source files.
For instance, if I change function name foo to bar, Eclipse searches where foo is called and replace it to bar.
Similarly, when I work with Keil MDK, when I change the name of the function, I edit my header file and search where the function was called.
Does Keil support this type of refactoring features?
-Best Regards, David
or you can use the MDK-Eclipse Plugin in Eclipse IDE. This way you can edit your project files in Eclipse with all functionalities of Eclipse. I currently use MDK 4.74 and plugin is in Keil\Eclipse folder. You may have to check for the MDK version you are using.
You are right.
We are working on introducing this feature but it will take a while.
Replace/Replace all isn't the same - it doesn't take into account namespaces.
When refactoring, the editor needs to know the scope of symbol names. So if it's a field in a struct, it should rename the field in the data type and in all references of that data type - but should not touch other parts of the code that has symbols with the same name.
So the editor needs to parse the source code in the same way a compiler does.
Hi David
I think there is possibility to perform Replace/Replace All in uVision using search window: http://www.keil.com/support/man/docs/uv4/uv4_ut_searching.htm
View all questions in Keil forum