CLion 2017.2.1

コードをチェックしてすばやく修正できるコード解析ツール、Clang-Tidyを搭載
8月 4, 2017
新バージョン

機能

  • Clang-Tidy
    • Clang-Tidy on board - Clang-Tidy is a powerful code analysis tool that provides dozens of valuable checks and quick-fixes. Now you can benefit from it in CLion - it works as you type, and shows messages the same way as CLion’s own built-in code inspections. Clang-tidy quick-fixes are similarly available via Alt+Enter.
    • Configure the checks you need - Make the IDE run only the checks you really need. To configure this easily, go to C/C++ code inspections settings Settings/Preferences | Editor | Inspections | C/C++ | General | Clang-Tidy). Clang-Tidy command line format is used in the text field. The default configuration can be found here.
    • C++ Core Guidelines - Clang-Tidy incorporates lots of valuable checks. Among them are C++ Core Guidelines checks (use -*,cppcoreguidelines-* to run only these), modernize C++ code checks (-*,modernize-*), and many others.
    • Add your own checks - Clang-Tidy is easily extendable, with a convenient API for writing new checks. Add your custom checks and get them immediately in CLion. JetBrain's fork of Clang-Tidy should be used.
  • C++ Support
    • Code analysis correctness - Focusing on correctness, CLion 2017.2 improves its C++ code analysis across the board. For example:
      • Fixes for incorrect code analysis in cases when std::enable_if is used
      • Fixes for the issues with resolving STL containers with nested template type for GCC5/6
      • Proper support for va_* macros was added
      • Correct handling of functions that take parameter pack arguments and non-template arguments
    • Unused variable quick-fix - Even when variable is unused, constructor might still have some side effects. A new quick-fix was added to preserve non-trivial constructor call on unused variable.
    • C++ cast operators - CLion’s intentions and quick-fixes in C++ code suggest C++ type casts (static_cast, dynamic_cast, reinterpret_cast, const_cast) instead of C-style casts.
    • C++17 in the New Project wizard - C++17 is now available in the list of standards in the New Project wizard. CLion will automatically add set(CMAKE_CXX_STANDARD 17) to the CMakeLists.txt generated for new projects.
    • PCH for Microsoft Visual C++ compiler - Precompiled headers are now supported for MSVC as well.
  • Debug
    • Force Step Into - The Disassembly view is shown in CLion when sources are not available when debugging with GDB. To get into disassembly code, now you need to use a special action, Force Step Into (Shift+Alt+F7). The usual Step Into (F7) will simply skip all frames without sources.
    • Inspecting big arrays - To reduce timeouts during array evaluation while debugging, CLion uses a limit of 50 array elements shown by default. If you need elements with big indexes and clicking expand is not an option, then simply increase the value cidr.debugger.value.maxChildren in the Registry. Keep in mind that this may lead to increased timeouts as well.
    • GDB driver fixes - CLion 2017.2 fixes several annoying issues with GDB driver:
      • Command time out when trying to attach to a non-existent local process
      • Incorrectly escaped backslashes in program arguments on Windows
  • Performance improvements - Indexing times were improved in some cases. And after optimizing the parsing of the compiler predefined macros in CLion, some performance improvement during the reindexing was achieved as well. Besides, in some cases it’s just about giving users more control:
    • Cancelable asynchronous Go to actions - Go to subclass and Go to overridden functions actions may take significant time as they build a list of available options to navigate to. To improve IDE performance and responsiveness, it's now possible to cancel these navigation actions - simply click to the area out of the navigation popup window and it’s done.
    • Cancelable CMake reload - To save time, it’s now possible to cancel CMake reload in order to introduce additional changes or just to postpone this time-consuming operation. To that end a Stop button has been added to the CMake tool window. To distinguish cancelled and finished CMake runs, CLion now displays [Finished] in every output tab for each CMake configuration being reloaded and finished.
    • Find in path UI - The Find in Path popup introduced in 2017.1 has received some UI enhancements.
    • Left gutter in preview - The Preview panel now has a full-featured left-side gutter with navigation icons, and markers for local changes.
    • Merged results - For your convenience, search results from the same lines are now merged together in the Preview panel.
  • VCS
    • Revert - Git Revert is now available in the Git Log view and works for any number of selected commits.
    • Reword - To change the commit message for a commit that has not been pushed yet, use the new Reword action.
    • Commit Dialog settings - To keep the commit messages easy to read and expressive, take care of their formatting. Updated settings allow you to control blank lines between subject and body, maximum text length, and check spelling. They are located under Version Control | Commit Dialog.
    • Quick-fixes for commit messages - CLion now offers quick-fixes for commit messages, such as reformat or wrap lines.
  • Other improvements
    • CMake 3.8 is now bundled into CLion.
    • Google Test Run/Debug configurations are generated automatically for targets linked with gmock (similar to what was previously done for gtest).
    • On Windows displays, CLion gets its own scale factor and the UI is scaled accordingly.
Clang-Tidy is a powerful code analysis tool that provides dozens of valuable checks and quick-fixes.

CLion

CとC++のクロスプラットフォームアプリ開発用IDE

CLionは、次の製品にも含まれています。

ご質問がありますか?

今すぐ JetBrains ライセンススペシャリストとライブ チャット