CLion 2021.1

MISRA 지원을 확장하고 Qt 프로젝트를 위한 Clazy와 통합합니다.
4월 9, 2021
신규 버전

기능

  • Data Flow Analysis (DFA) - CLion now includes global DFA (which takes a whole translation unit of a program as a single unit for analysis). Global DFA not only enriches the already existing checks but also adds several new unique inspections.
    • Enhancing local checks with global DFA - The list of current DFA-based inspections that benefit from global DFA includes:
      • Dangling pointers - detects pointers that may point to already deleted memory.
      • Null dereference - detects dereferencing pointers that may contain nullptr.
      • Endless loops and Infinite recursion.
      • Constant conditions - detects possible conditions that are always true or false.
      • Unreachable code and Unused values.
      • Escape analysis - detects variables containing references to local variables that escape their scope.
    • New global DFA checks - A few new inspections have been added that only make sense when analyzing globally – running DFA on a whole translation unit of a program:
      • Constant function result – reports functions whose return value appears to always be the same constant.
      • Constant parameter – reports functions where a parameter appears to always be the same constant.
      • Unreachable function calls – detects functions whose call sites are never executed.
    • Performance improvements - Optimized the DFA.
  • Dynamic analysis
    • Branch coverage - You can now calculate Branch Coverage. (Note: It only works with GCC/gcov or version 12.0.0 and higher of LLVM/llvm-cov.)
    • Dynamic analysis in Remote mode - In order to reach feature consistency across all toolchains, project models and configurations, this release makes it possible for Google Sanitizers, Valgrind Memcheck and Code Coverage to work with remote toolchains.
  • MISRA C and C++ checks - This release adds more checks from MISRA C 2012 and MISRA C++ 2008.
  • Postfix completion for C and C++ - Postfix code completion for C and C++ lets you add code around an expression you’ve just typed. It can wrap an expression with a frequently used language construct or pass the expression as the first argument of a free function.
    • Wrap the expression with language construct - Postfix templates can now help you with common language constructs.
    • Pass the expression to a free function - You can now use postfix code completion to pass the expression you’ve just typed to a free function as the first argument.
  • Enhancements for Makefile projects
    • Initial support for Remote Makefile projects - Added the ability to work with Makefile projects on a remote machine.
    • Makefile Language plugin - The Makefile Language plugin (previously 3rd-party) is now maintained by the CLion team and comes bundled in CLion. The plugin provides make syntax highlighting, quick documentation, Find Usages for targets and a variety of navigation and code completion actions for Makefile.
  • Enhancements for CMake projects
    • Share CMake Profiles in VCS - CMake Profile settings in CLion are now stored in a cmake.xml file in the .idea directory and can be shared in the VCS along with the project. Added support for Apple Silicon (M1 chip). CMake 3.19 features for CUDA are now supported in CLion, which includes autocompletion for a few new CMake variables.
  • Enhancements for Qt projects
    • Clazy integration - Clazy is now integrated into CLion’s Clangd-based engine. CLion currently uses version 1.8. Checks are displayed in the editor and quick-fixes are also available.
    • QtCreator keymap - CLion now bundles the QtCreator keymap. You can switch to it in Settings or via a Quick Switch Scheme action (Ctrl+`).
  • Debugger
    • Set Execution Point in disassembly - The Set Execution Point action lets you jump to an arbitrary line of code in the editor during a debug session and set the execution point there, skipping all the other commands in between. It now works in the disassembly view, so you can move the execution point while stepping through the assembly code.
    • Core dumps debugging - When debugging core dumps in this release, users can now set sysroot in the corresponding run configuration. This will help localize library symbols when debugging core dumps from binaries built on other systems. Explicitly setting symbol files when debugging a core dump for non-symbolized binary with LLDB now also provides necessary information about the symbols to CLion.
  • Remote terminal - Added a new Open Remote Host Terminal action which opens the project directory on the remote host if it exists.
  • Project view - Source files located outside of the project root are now grouped under the External Sources node in the Project tree.
  • VCS
    • Profile for pre-commit inspections - CLion can inspect your code before you commit it to help you make sure there are no bugs.
    • Git commit templates - You can now create a custom commit message template in Git and CLion will display this text as an initial commit message.
    • Save to Shelf - Added a new Save to Shelf action which allows you to copy your changes to the Shelf while keeping them in the local changes.
  • Rust plugin update
    • IntelliJ Rust now provides a structured view for the compiler’s build output. This new feature works with Cargo versions 1.48.0 or later.
    • Updated the Change Signature refactoring which helps you modify a function/method signature, affecting all references.
    • You can now quickly change a function’s name or return type, reorder or add/remove parameters, and add an async or unsafe prefix.
    • The Rename refactoring now gives renaming suggestions for elements like structs, functions and local variables when you change a name in the editor.
    • Conditional compilation support has been improved.
    • Find Usages is now available for Cargo features and completion works for the feature argument in the cfg and cfg_attr attributes.
    • If there are nested attributes inside cfg_attr, the plugin now takes that into account during name resolution and code analysis.
  • Code With Me is now bundled with CLion - You can use it to code together in real time and talk to others from the IDE.
  • Space integration - Integration with Space is now available out of the box. Once you log in, you can view and clone project repositories, review your teammates’ code and write Space Automation scripts.
  • Other enhancements
    • CLion will now automatically apply the high-contrast theme when you launch the IDE for the first time if you are using the high-contrast mode on Microsoft Windows.
    • Added the ability to fine-tune the weight of your main and bold font styles.
    • Maximize tabs in the split view - Whenever several tabs that split the editor vertically are open, you can double-click either of them to maximize the editor window for that specific tab. To bring the window back to its original size, simply double-click it again.
MISRA support

CLion

C 및 C++를 위한 크로스 플랫폼 IDE.

CLion 도 구매할 수 있습니다:

궁금한 점이 있으세요?

JetBrains 사 제품 라이선스 담당자와 라이브 채팅