gpt4 book ai didi

c++ - Eclipse 中函数原型(prototype)的建议

转载 作者:行者123 更新时间:2023-11-28 08:16:59 24 4
gpt4 key购买 nike

Eclipse 中是否有任何功能可以通过包含的 header 中的原型(prototype)生成空函数实现?
也就是说,我创建了一些 *.c 文件并在其中编写了 #include something.h,我希望 Eclipse 能够建议/生成原型(prototype)在 something.h 中定义的空函数。或者至少智能感知可以自动完成函数声明(来自 something.h)?还是我想要太多?

谢谢。

最佳答案

当前 Eclipse 中可用的最接近的是菜单选项 Source/Implement method。

诚然,这并不是那么接近。见:

http://wiki.eclipse.org/CDT/C_editor_enhancements/Source/header_synchronization

你也可以看看像这样的外部工具

http://www.radwin.org/michael/projects/stubgen/

关于c++ - Eclipse 中函数原型(prototype)的建议,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7400697/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com