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

标签 c++ c eclipse intellisense eclipse-cdt

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/

相关文章:

java - Eclipse 检测到错误的 Maven 依赖关系

c++ - 如何使用代码块 Ubuntu 编译 64 位 C++ 程序

c++ - 如何使用opengl绘制一个简单的网格?

c++ - C++中的部分前向声明

c++ - 如何在 C/C++ 中定义一个常量数组?

c - 当您将学生人数的值输入为 3 时,这个 while 循环如何打印 3 作为 cnt 的值而不是 2?

eclipse - 使用mingw在eclipse中未定义对WinMain Error 1的引用

c++ - 关于c++数组的问题

c - GTK+ 和 OpenGL

java - 使用库编译 Java 小程序