是否有一个工作的C ++重构工具? [英] Is there a working C++ refactoring tool?

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

问题描述

有没有人知道C ++的功能重构工具可靠地与大代码库(大约100.000行)?

Does anybody know a fully featured refactoring tool for C++ that works reliably with large code bases (some 100.000 lines)?

我尝试了一遍又一遍过去几年:SlickEdit,Eclipse CDT。他们都不可用。

I tried whatever i can find again and again over the last years: SlickEdit, Eclipse CDT. They all were not at all usable.

摘要
我花了时间,评估了Visual Assist X以及Refactor for C ++。两者都有一些令人印象深刻的特点,但两者也远不完美。

SUMMARY: I took time and evaluated "Visual Assist X" as well as "Refactor for C++". Both have some impressing features, but both as well are far from perfect. Extracting a large block of code usually is not done satisfying without manual modifications - and therefore does not pay off.

Visual Assist X有许多不错的功能,比如更完整的功能自动完成等。但是它导致这么多的闪烁,并在某些点减慢了很多。

"Visual Assist X" has nice features such as much more complete autocompletition etc. But it leads to so much flickering and slows down much at certain points.

因此我的意见,答案是:不,没有生产准备重构工具for C ++

By my opinion therefore the answer is: "No, there is no production ready refactoring tool for C++"

2015年3月更新
至于hdoghmens回复今天我试过Resharper for C ++。
他的链接
https://www.jetbrains.com/resharper/ 没有说什么C ++。但我发现一年多前在这里公布的Resharper C ++:

UPDATE March 2015 As for hdoghmens reply today i tried Resharper for C++. His link https://www.jetbrains.com/resharper/ does not say anything about C++. But i found Resharper C++ that was announced more than a year ago here:

https://www.jetbrains.com/resharper/features/cpp.html

我试过使用VC2010使用代码基地20MB。

I gave it a try with VC2010 using a code base of 20MB.

测试1:提​​取方法:
会导致Resharper异常。没有更改源代码。

Test 1: Extract Method: results in a Resharper exception. No source code changed.

测试2:使用不同的来源提取方法:
工作正常

Test 2: Extract Method with different source: Works fine

测试3:改变提取函数的签名:破解C ++代码的结果:

Test 3: Change signature of extracted function: Results in broken C++ code:

bool myclass::do_work123(<unknown long Color>int& Filled*&, long, int&)

也许这就是为什么C ++不在主页。

Maybe thats why C++ its not listed on the main page.

我认为这个问题的答案仍然是NO

By my opinion the answer to this question still is "NO".

推荐答案

我在Visual Studio中找到 Visual Assist X 非常有用。另一个选择是 C ++的重构

I find Visual Assist X with Visual Studio very useful. Another choice is Refactor for C++.

这篇关于是否有一个工作的C ++重构工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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