简体   繁体   English

在Eclipse CDT中重构C ++

[英]Refactoring C++ in Eclipse CDT

I've installed the Galileo release (Eclipse 3.5/CDT 5.1) in hopes of utilizing the better refactoring support mentioned in 我已经安装了Galileo发行版(Eclipse 3.5 / CDT 5.1),以期希望利用本文中提到的更好的重构支持。

What is the state of C++ refactor support in Eclipse? 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://download.eclipse.org/tools/cdt/releases/galileo

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. 由于过时的依赖关系,尝试直接从重构站点添加插件失败http://ifs.hsr.ch/cdtrefactoring/updatesite/ ,因此,我假设最新版本应具有最新的重构能力。

Am I correct in this? 我对此是否正确?

How do others refactor in Eclipse CDT? 其他人如何在Eclipse CDT中重构? Do people use other tools/plugins? 人们还会使用其他工具/插件吗?

You should install CDT 6.0. 您应该安装CDT 6.0。 However, my guess is that the options mentioned in the question you linked are not yet ready for mainline. 但是,我想您链接的问题中提到的选项尚未准备好进入主线。

My CDT offers Rename, Extract Variable/Constant/Function, Hide Method. 我的CDT提供重命名,提取变量/常数/函数,隐藏方法。

From those, I only use Rename regularly, the others do not yet seem finished. 从那些,我只定期使用重命名,其他似乎还没有完成。

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. 这种用于C ++的工具的问题之一是该语言比其他语言(例如模板,宏等)复杂得多,因此,比起Java,实现这种工具需要付出更多的努力。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM