Early Access Program News

CLion 2022.2 EAP6: Updates to Quick Documentation and Better Handling of Booleans in the CMake Cache Editor

A new CLion 2022.2 EAP6 build, 222.3244.6, is available from our website, via the Toolbox App, or as a snap package for Ubuntu. If you are on macOS, there is a separate build for Apple Silicon (M1 chip). Those who are already using EAP5 can apply a patch to update to EAP6.

DOWNLOAD CLION EAP

Updates to Quick Documentation

The Quick Documentation popup has been our main area of focus in this release cycle. Just recently we added quick documentation for CMake scripts and the values of constant C and C++ expressions, and now we’re making it possible to see the enum value as an integer when you call up Quick Documentation:
Enum values in Quick Doc

In addition, it can be useful to see whether a given struct or class declaration supports copy and move operations, so CLion now shows this information in the Quick Documentation popup:
Copy/Move info in Quick Doc

Better handling of boolean values in the CMake cache editor

Earlier in this EAP, we introduced the CMake cache editor. Now CLion also shows the short description in tooltips for CMake cache variables:
CMake Cache tooltips and boolean values

We’ve improved the way it shows boolean variables. CMake syntax is a bit tricky here, so in CLion we are using the following approach:

  • The IDE now shows the checkbox and the actual value behind the boolean variable in the CMake cache.
  • The IDE treats the following values as False:
    • 0
    • OFF
    • NO
    • FALSE
    • N
    • IGNORE
    • NOTFOUND
    • Empty strings
    • Values that end in the suffix -NOTFOUND

    In all other cases, the value is treated as True.

  • When you check or uncheck the checkbox in the CLion UI, the following pairs of values are used to configure option values:
    • 0-1
    • OFF-ON
    • NO-YES
    • FALSE-TRUE
    • N-Y

    For any other values, the IDE converts the checkbox state to ON/OFF.

  • Named boolean constants are case-insensitive.

Enhanced configuration for highlighting inspections

In v2022.2, we’ve improved the way you configure your preferences for highlighting inspections.

When you want to change how an inspection appears in the editor, you can set it up using the new Highlighting in editor drop-down menu, which conveniently shows all available highlighting styles.
Inspection settings

Other fixes

  • We fixed several things in our Clangd-based language engine to make it more accurate and eliminate crashes.
  • To fix some false-positive errors for GCC-12, we added -fsized-deallocation to our language engine (CPP-29091).

The full release notes are available here.

Please evaluate the new enhancements and bug fixes and share your feedback with us here in comments or via the issue tracker. Thanks!

DOWNLOAD CLION EAP

Your CLion team
JetBrains
The Drive to Develop

image description