C++前向类声明生成器
是否有一个工具可以遍历文件列表并生成一个头文件,其中包含它遇到的类的前向声明?理想情况下,我想将其集成到 Visual C++ 的构建过程中。
Is there a tool that would go through a list of files and would spit out a header file with forward declarations of classes it encounters? Ideally, I would like to integrate it into Visual C++'s build process.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
据我所知没有。但我想你想要的只是类名,所以 grep、awk 或类似的东西就可以完成这项工作。
Not that I know of. But I guess that all that you want are class names, so grep, awk or something like that would do the job.
您可以 grep 并将替换内容保存到文件中。
You can grep and save replacements to a file.