Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automatic generation of function stubs

Is there any Visual Studio add-on (or windows/unix stand-alone program) that creates stub implementations in the cpp file for the functions (including class member functions) that are defined in the header file?

like image 466
Igor Avatar asked Nov 25 '25 10:11

Igor


2 Answers

I have the same problem before and now I am using trial version of Visual Assist X. The task mentioned can be done by right clicking on the method name -> Refactor -> Create Implementation and then Refactor -> Move Implementation to CPP file.

I am no Visual Assist X's affiliate or what, but this really increases my coding speed with Visual C++ dramatically.

like image 67
Gant Avatar answered Nov 28 '25 01:11

Gant


Refactor! for C++ works with Dev Studio 2005 and 2008. The free version "kind-of" let's you do this; if you type your stub method in your header file (by typing something like void Foo(int bar){} instead of void Foo(int bar);) you can then "Move method to source file."

The full version has many more features but I'm not familiar with their usage.

like image 43
Patrick Johnmeyer Avatar answered Nov 27 '25 23:11

Patrick Johnmeyer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!