在Eclipse CDT中重构C ++ [英] Refactoring C++ in Eclipse CDT

查看:87
本文介绍了在Eclipse CDT中重构C ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了Galileo版本(Eclipse 3.5 / CDT 5.1),希望利用

I've installed the Galileo release (Eclipse 3.5/CDT 5.1) in hopes of utilizing the better refactoring support mentioned in

Eclipse中C ++重构支持的状态是什么?

但是我没有列出所有提到的重构选项。我没有看到与

However I do not see all the mentioned refactoring options listed. I don't see any plug-ins related to refactoring on

http://download.eclipse.org/tools/cdt/releases/galileo

尝试直接添加插件重构站点中的 http://ifs.hsr.ch/cdtrefactoring/updatesite/ 由于过时的依赖关系,所以我假设最新版本应该具有最新的重构功能。

Attempts to add the plugin directly from the refactoring site fails http://ifs.hsr.ch/cdtrefactoring/updatesite/ due to outdated dependencies, so I'm assuming the newest release should have the latest refactoring abilities.

我要对此进行纠正吗?

其他人如何在Eclipse CDT中重构?人们是否使用其他工具/插件?

How do others refactor in Eclipse CDT? Do people use other tools/plugins?

推荐答案

您应该安装CDT 6.0。但是,我想您所链接的问题中提到的选项尚未准备好进入主线。

You should install CDT 6.0. However, my guess is that the options mentioned in the question you linked are not yet ready for mainline.

我的CDT提供了重命名,提取变量/常量/函数,隐藏方法。

My CDT offers Rename, Extract Variable/Constant/Function, Hide Method.

我只是定期使用重命名,其他似乎还没有完成。

From those, I only use Rename regularly, the others do not yet seem finished.

其中之一这种用于C ++的工具的问题在于该语言比其他语言(例如模板,宏等)复杂得多,因此实现这种工具需要比Java付出更多的努力。

One of the problems with such tools for C++ is that the language is way more complex than other languages (think templates, macros etc.) so implementing such a tool needs tremendously more effort than for, say, Java.

这篇关于在Eclipse CDT中重构C ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆