Is there a working C++ refactoring tool? [closed] Ask Question

Is there a working C++ refactoring tool? [closed] Ask Question

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

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

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" has nice features such as much more complete autocompletition etc. But it leads to so much flickering and slows down much at certain points.

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

2015年3月更新hdoghmensの返信についてですが、私はC++用のResharperを試してみました。彼のリンクhttps://www.jetbrains.com/resharper/C++ については何も書かれていません。しかし、1 年以上前に発表された Resharper C++ がここに見つかりました:

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

20MB のコード ベースを使用して VC2010 で試してみました。

テスト 1: メソッドの抽出: Resharper 例外が発生します。ソース コードは変更されていません。

テスト2: 異なるソースでメソッドを抽出: 正常に動作

テスト 3: 抽出された関数のシグネチャを変更すると、C++ コードが壊れます。

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

おそらくそれが、C++ がメイン ページにリストされていない理由です。

私の意見では、この質問の答えは依然として"いいえ"

ベストアンサー1

ビジュアルアシストVisual Studio を使用すると、大規模なコードベースの処理がはるかに簡単になります。ビジュアル アシストは、クラスまたはメンバーの使用方法を追跡するのに優れており、検索と置換よりも誤検出なしで名前を変更するのに効果的です。

おすすめ記事