Skip to content

Semantic Refactor 0.3

Compare
Choose a tag to compare
@tuhdo tuhdo released this 05 Apr 18:16
· 245 commits to master since this release
  • Lot of bugs fixed
  • Local variable renaming now has highlighting over actual variable instances to be renamed. As a reminder, actual variable instances mean that only variable instances of the same type with the same name in the same scope. For example, a user may see two variables, A::var_1 and B::var_1 with the same name and the same type, but only A::var_1 is highlighted when renaming and B::var_1 is not highlighted, because the one highlighted is in the same scope as the variable user chose to rename.
  • Improve getter/setter generation:
    • Users can specify a regexp to remove a part of variable name such as prefixes like "m_" or "_".
    • Users can capitalize the first character of variable name in getter/setter with srefactor--getter-setter-capitalize-p.
    • Allows getter/setter to be inserted in other file (file with the same name but different extension).
  • Add initial support for Emacs Lisp refactoring. See one line/multiple line transformation demo.
  • Add initial support for Clojure refactoring similar to Emacs Lisp. However, clojure-semantic must be installed.