This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Refactoring features in Keil MDK 5?

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

Parents
  • 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.

Reply
  • 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.

Children