T
the.theorist
I'm porting some C++ code (which is all undocumented of course)
between platforms, and giving it a good clean-up at the same time. I
one of the classes the original programmer was apparently in the habit
of violating principles of encapsulation. Instead of directly copying
this one class, I've decided to replicate functionality. grep does a
really nice job of telling me what other files include this class. The
question now becomes what functionality of this class actually gets
used in those cpps.
It would be really helpful if there was a command line utility out
there that would, when given a cpp, search out all the include files
and list which functions, among the very many in all the includes,
actually get used in the cpp.
This has got to be done by somebody somewhere, but I was having a
difficult time searching for it. I've no real problem writing a crude
tool that does this myself, but I'd like a more general one that has
knowledge of C++ syntax and other such goodies.
So, can anybody throw out some names of programs that might help?
between platforms, and giving it a good clean-up at the same time. I
one of the classes the original programmer was apparently in the habit
of violating principles of encapsulation. Instead of directly copying
this one class, I've decided to replicate functionality. grep does a
really nice job of telling me what other files include this class. The
question now becomes what functionality of this class actually gets
used in those cpps.
It would be really helpful if there was a command line utility out
there that would, when given a cpp, search out all the include files
and list which functions, among the very many in all the includes,
actually get used in the cpp.
This has got to be done by somebody somewhere, but I was having a
difficult time searching for it. I've no real problem writing a crude
tool that does this myself, but I'd like a more general one that has
knowledge of C++ syntax and other such goodies.
So, can anybody throw out some names of programs that might help?