CppDepend
/기능/Analytics & Evolution/레거시 코드 현대화

레거시 코드 현대화

Modernize Your Legacy Code

Modernize Your Legacy Code

C++11 includes several additions to the core language and extends the C++ standard library. Some of these new features are very easy to use and add a lot of value to your C++ projects.

It's beneficial to automatically detect places where we can use some new C++11 features. For such needs, clang-modernizer is a standalone tool used to automatically convert C++ code, written against old standards, to appropriate features of the newest C++ standard.

The CppDepend Windows version now integrates the clang-modernize tool to detect the places where the following features could be used:

  • Override: Detects places where you can add the override specifier to member functions that override a virtual function in a base class and that don't already have the specifier.
  • Loop Convert: Detects loops like for(...; ...; ...) and replaces them with the new range-based loops in C++11. This also gives you the new range loop expression to use.
  • Pass-By-Value: Detects const-ref parameters that would benefit from using the pass-by-value idiom.
  • auto_ptr: Detects the uses of the deprecated std::auto_ptr by std::unique_ptr.
  • auto specifier: Detects places where to use the auto type specifier in variable declarations.
  • nullptr: Detects null literals that should be replaced by nullptr where applicable.

Key Benefits

  • 레거시 코드 핫스팟 탐지
  • 현대화 경로 제안
  • C++ 표준 업그레이드 안내
  • Track modernization progress

시도 레거시 코드 현대화 with CppDepend

Start your 14-day free trial with full access to all features. No credit card required.