eclipse - 在 Eclipse CDT 中浏览 Nginx 源代码

标签 eclipse nginx

我正在尝试在 Eclipse CDT 中浏览 nginx 源代码。

我按照网上的说明进行操作,下载源代码,执行./configure && make,然后将其作为现有的“Makefile 项目”导入到 Eclipse 中。

幸运的是,我正确地完成了代码跳转(Ctrl+Click),但令我困扰的是 Eclipse 不断报告“Type 'ngx_int_t' Could not be returned.”,这导致目录 View 中出现很多错误迹象以及文件本身。

如何解决这个问题?

最佳答案

我遇到了同样的问题,我只是弄清楚问题出在哪里:nginx源代码中有一些函数具有ngx_int_t返回类型,并声明如下:

ngx_int_t
<function name>

显然 Eclipse 不喜欢这种断行声明。因此,我在 ngx_int_t 上使用 Command+Click(即 Ctrl+Click),Eclipse 向我显示了存在此类声明的所有位置,然后我删除了 ngx_int_t 之间的换行符和函数名称,现在 Eclipse 不会发出此错误。

关于eclipse - 在 Eclipse CDT 中浏览 Nginx 源代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14019207/

相关文章:

java - IntelliJ 15 运行缓慢并占用 1GB 内存

java - 在 GWT Web 应用程序中使用 WebService 客户端出现 ApiDeadlineExceededException

eclipse - 黑莓调试输出

java - eclipse : Could not open editor after Eclipse PDT upgrade to version 5. 0.1.201706221952

nginx - http2模块nginx不工作

nginx - Curl,证书的所有者与主机名不匹配

nginx - 预计为 : 100-continue with the nginx proxy_pass

python - nginx + uwsgi 用于使用多个端口的多个站点

ruby-on-rails - Phusion 乘客状态 : what value for passenger_instance_registry_dir?

php - Eclipse (PDT) 烦人地将 .phtml 文件锁定为 PHP 内容类型