我有一堆C ++头文件与各种类和函数声明。到目前为止,当我编写已声明的类和函数的C ++源文件实现时,我已经手动:
I have a bunch of C++ header files with various class and function declarations. So far, when I've been writing the C++ source file implementations of the declared classes and functions, I've been manually:
只有在所有工作完成后,实现功能。我想知道是否有一个工具,在某处可以自动从.h文件生成一个.cpp文件,其中生成的.cpp包含在.h文件中声明的函数的空存根(并且没有给出内联定义)。一个UNIX友好的命令行工具将是首选。谢谢。
Only after all that work, which doesn't really do anything, can I actually go about implementing the functions. I am wondering if there is a tool out there somewhere that can automatically generate a ".cpp" file from a ".h" file, where the resulting ".cpp" contains empty stubs for the functions declared in the ".h" file (and for which an inline definition hasn't been given). A UNIX-friendly commandline tool would be preferred. Thanks.
更新:跨平台工具将是理想的。如果没有,我正在使用Mac OS X 10.6。
UPDATE: A cross-platform tool would be ideal. If not, I am working on Mac OS X 10.6.
推荐答案Lazy C ++ 似乎是为了解决这个问题。
Lazy C++ appears to be designed to address precisely that problem.
更多推荐
从头自动生成C ++文件?
发布评论