

CLion 2022.1 EAP6: CMake Presets, Improved CMake Scripts Formatting, and Other F...
source link: https://blog.jetbrains.com/clion/2022/03/clion-2022-1-eap6-cmake-presets-and-formatting/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

CLion 2022.1 EAP6: CMake Presets, Improved CMake Scripts Formatting, and Other Fixes

The new CLion 2022.1 EAP build, 221.5080.52, is now available from our website, via the Toolbox App, or as a snap package (if you are using Ubuntu). Please note that if you are on macOS, there is a separate build for Apple Silicon (M1 chip).
Those of you already using the EAP5 build can apply a patch to update to EAP6.
CMake updates
CLion now automatically creates CMake Profiles for configure presets (this was only available for build presets before). This change makes the configuration process easier and lets you remove redundant build presets.
CLion now also works with the --preset
argument passed to the cmake command. The data from the preset is loaded into build type, toolchain, and build directory settings.
CMake v3.22 has been bundled into CLion.
CLion now notifies you when something has changed in the environment and the changes require clearing CMakeCache.txt and reloading the project:
The notification is typically shown after you update Xcode on macOS and your compilers are no longer available at their previous paths. Something similar might also happen for MSVC and MinGW.
CMake scripts are now formatted more accurately:
if() .. endif()
,else()
andelseif()
,endforeach()
,endfunction()
,endmacro()
, andendwhile()
are aligned correctly.- It is now possible to fold blocks for these commands.
- Brace pairing and code block highlighting are available for these commands as well.

Other highlights
The build also includes fixes for the following issues:
- False positives occurred in Data Flow Analysis for function calls located inside parentheses (CPP-28122).
- The
auto
keyword was highlighted incorrectly when a trailing return type was used (CPP-28440). - A wider context than necessary was considered by the Rename refactoring when renaming a local variable (CPP-23257).
- Various issues in code completion (CPP-27816, CPP-27318, CPP-22156).
- Broken highlighting and run icon for Boost.Test 1_69_0 (CPP-28254).
The full release notes are available here.
Your CLion team
JetBrains
The Drive to Develop
Recommend
-
93
README.md BetterTouchTool Touch Bar Presets Here we collect cool touch bar presets for BetterTouchTool. Feel free to send your own configs in pull-requests. Do...
-
64
(点击上方公众号,可快速关注) 作者:韩小平 excaliburhan.com/post/babel-preset-and-plu...
-
50
Moving forward with v7, we've decided it's best to stop publishing the Stage presets in Babel (e.g. `@babel/preset-stage-0`).
-
70
A new version of open source video editor OpenShot is now available for download, the first up...
-
12
Introduction Oracle’s SQL Developer can format code in any worksheet and PL/SQL editor. The formatter is highly configurable and the default formatting results are becoming better with every version. Oracle’s SQLcl is a command-line...
-
5
CMake 3.19 was released late last year and came with the announcement of a new feature: CMake presets. And in ...
-
8
Single File Monorepo Config, Custom Workspace Presets, Improved Tailwind Support, and more in Nx 13.4!Nx logoNx is a smart, extensible build framework to help you architect, test,...
-
6
Early Access Program News CLion 2022.1 EAP5: Setting to Reload CMake Profiles Sequentially, Fi...
-
3
CMake debugger allows you to debug your CMake scripts and more Sinem...
-
2
使用 CMake Presets 基本知识Permalink ...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK