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

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

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -