clang-refactor is a small wrapper around clang-refactor cli tool from clang extra tools for Emacs.
Clone the git repository.
Add this in your init.el:
(add-to-list 'load-path "<path-to-clang-refactor.el>")
(require 'clang-refactor)
clang-refactor defines these variables that the user can tweak:
clang-refactor-binary
: path toclang-refactor
executable.
Now clang-refactor provides only one function clang-refactor-extract-region
, which uses clang-refactor to extract the code in selected region.
All contributions are most welcome!
It might include any help: bug reports, questions on how to use it, feature suggestions, and documentation updates.
This is my first attempt on emacs-lisp code and I am glad to get some critique.
Many thanks to the authors of clang-rename for inspiration and to the authors of clang-refactor cli tool.