[clug] Code "rework/rewrite" tools.

Daniel Pittman daniel at rimspace.net
Wed Jan 21 02:06:10 GMT 2009

"Andrew Janke" <a.janke at gmail.com> writes:

> Sitrep:  I "inherited" the job of maintaining a bunch of code a while
> back.  It is C++ code from years back and is spread across a library
> (or two) and the main "doover". Of course in the latest Debian/Ubuntu
> things go wonky due to the (older) way in which templates and operator
> overloading are used.  Even judicious use of -frepo doesn't help me
> here. :(
> So I am faced with the (erky) prospect of re-writing the sections of
> it that matter and thus the question...
> Does anyone know of a tool that allows you to "weed" a library down to
> just what is used?

I never found anything better than a binary search with #if 0 or
comments; remove the entire body of the code, and then comment back in
what the compiler complains is missing.  Repeat until you identify what
is needed.

> At least then I could concentrate my work on the bits that matter as
> compared to fixing/updating the whole thing.



More information about the linux mailing list