suppose I have x.h
class X {
void f();
void g();
}
in x.cpp
#include "x.h"
can I just entry a command with "X" as a parameter, then I can get
void X::f() {}
void X::g() {}
https://github.com/tuhdo/semantic-refactor should do what you wish. It has some examples that show what it can do, and if I understood you correctly, Example 1 matches your use case. You might find the "How can I automatically insert a prototype in foo.h from foo.c?" thread helpful as well, it is very closely related.