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

Łukasz Lew picture Łukasz Lew · Mar 23, 2009 · Viewed 21.9k times · Source

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

Answer

muede picture muede · Feb 13, 2014

In recent Emacs versions (24), Semantic is able to this.

  1. Possibly activate semantic mode M-x semantic-mode RET.
  2. Bring up the Symref buffer with C-c , g.
  3. Press C-c C-e to open all references.
  4. Rename with R.