I'm wondering if there's a tool that can do this, but searching isn't yielding what I want. I do not want a tool that deals with the boring tedium involved in refactoring like moving variables and functions around. I'm looking for a code analysis tool which I can feed C++ code to, and will find code that looks like it
should be refactored. That would mean doing things like finding duplicate code (could be a diff, but variable naming could vary), finding similar structural arrangements that are repeated, finding class member functions that have no dependencies on that class, etc.
Any suggestions?
Edited by Promit, 22 June 2012 - 02:12 PM.