It would also be great if there was the option for header-only implementations for non-template classes/structs, and only generating .cpp files if there are static methods:
// foo.h
class foo {
int six;
public:
static std::string bar();
foo( int one, int two, int three ) { six = one + two + three; }
virtual ~foo(){}
};
// foo.cpp
std::string foo::bar() { return std::to_string("hello!"); }
It would also be great if there was the option for header-only implementations for non-template classes/structs, and only generating .cpp files if there are static methods: