Parsing C++ to generate unit test stubs -


i've been trying create units tests legacy code.

i've been taking approach of using linker show me functions cause link errors, greping source find definition , creating stub that.

is there easier way? there kind of c++ parser can give me class definitions, in easy use form, can generate stubs?

you may want investigate http://os.inf.tu-dresden.de/vfiasco/related.html#parsing. c++ parsing hard.

on other hand, maybe ctags or similar can extract class definitions...

you may try write own simple (?) parser generate class stubs header files...

i tried give pointers. see, problem not easy. can automate @ least part of it.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -