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
Post a Comment