How can I refactor C++ source code using emacs?

前端 未结 9 789
孤独总比滥情好
孤独总比滥情好 2021-01-30 06:34

I\'m interested mostly in C++ and method/class name/signature automatic changes.

9条回答
  •  闹比i
    闹比i (楼主)
    2021-01-30 07:26

    I totally agree that find-and-replace work fine. However , a really nice feature of cedet is 'semantic-symref-list'.

    With the cursor on a method, run this command, and you will be presented with a buffer that lists all of the places in your code that reference this tag.

    You can still use find-and-replace tricks, and this will confirm that you have changed all the references.

提交回复
热议问题