# Refactoring

**URL:** https://discourse.kitware.com/t/refactoring/111
**Category:** Software Process
**Created:** [May 23, 2018, 3:13pm UTC](https://discourse.kitware.com/t/refactoring/111 "2018-05-23T15:13:27Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![dcthomp](https://discourse.kitware.com/user_avatar/discourse.kitware.com/dcthomp/32/10_2.png) [@dcthomp](https://discourse.kitware.com/u/dcthomp)
#### Post date: [May 23, 2018, 3:13pm UTC](https://discourse.kitware.com/t/refactoring/111/1 "2018-05-23T15:13:30Z")

</div>

@Bob_Obara @tj.corona I haven’t used it, but the [refactorial](https://github.com/lukhnos/refactorial) project — which uses clang’s libtooling library to perform refactors — might make it easier to do some of the larger class renames. When I look at what `git grep Manager ` returns in SMTK, I see possible problems with resource::Manager, operation::Manager, as well as paraview references to ServerManager, ProxyManager, etc.

---

<div class="post-metadata">

### Author: ![Bob\_Obara](https://discourse.kitware.com/user_avatar/discourse.kitware.com/bob_obara/32/37_2.png) [@Bob\_Obara](https://discourse.kitware.com/u/Bob_Obara)
#### Post date: [May 23, 2018, 4:57pm UTC](https://discourse.kitware.com/t/refactoring/111/2 "2018-05-23T16:57:20Z")

</div>

Looks interesting though its hasn’t been modified for 5 years and the pre-built binaries don’t exist - I wonder if it still works?

Bob

Robert M. O’Bara, MEng.  
Assistant Director of Scientific Computing

Kitware Inc.  
28 Corporate Drive  
Suite 101  
Clifton Park, NY 12065

Phone: (518) 881- 4931

---

<div class="post-metadata">

### Author: ![Bob\_Obara](https://discourse.kitware.com/user_avatar/discourse.kitware.com/bob_obara/32/37_2.png) [@Bob\_Obara](https://discourse.kitware.com/u/Bob_Obara)
#### Post date: [May 23, 2018, 9:11pm UTC](https://discourse.kitware.com/t/refactoring/111/3 "2018-05-23T21:11:52Z")

</div>

Does not compile -

Bob  
Robert M. O’Bara, MEng.  
Assistant Director of Scientific Computing

Kitware Inc.  
28 Corporate Drive  
Suite 101  
Clifton Park, NY 12065

Phone: (518) 881- 4931

---

<div class="post-metadata">

### Author: ![dcthomp](https://discourse.kitware.com/user_avatar/discourse.kitware.com/dcthomp/32/10_2.png) [@dcthomp](https://discourse.kitware.com/u/dcthomp)
#### Post date: [May 23, 2018, 9:53pm UTC](https://discourse.kitware.com/t/refactoring/111/4 "2018-05-23T21:53:05Z")

</div>

In the newer `llvm` homebrew package, I see a `clang-refactor` executable (in `/usr/local/Cellar/llvm/6.0.0/bin/`) that looks like it might do what you want with `local-rename`. I have not tried it yet, though.
