2

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() {}
zhihuifan
  • 165
  • 4

1 Answers1

1

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.

Lorenz
  • 144
  • 4