CLion 1.2: Be more powerful with Google Test support, CMake coding assistance and more
Only a couple of short months have passed since the release CLion 1.1, and we already have CLion 1.2 available for you to download and try right now!
And if you have a CLion license, you can get this version absolutely free.
This release covers various essentials of the software development process: unit testing, writing CMake files, working with version control, general IDE look & feel and beyond. Read on for more details.
Google Test support
The latest update brings long-awaited support for Google Test. CLion is only taking its first steps in supporting various unit testing frameworks and approaches. If you have any in mind that you’d like supported, please add (or upvote) them in our tracker.
Google Test support in v1.2 includes configuration settings, a test runner with plenty of options, and code generation in unit tests. We recently published a detailed blog post about all these features, so here we’ll only highlight the most notable ones:
- Google Test is available on all three platforms: simply configure it in your project and start using it. A useful FAQ from the authors is located in this wiki.
- Run any test, fixture or whole file by pressing
Ctrl+Shift+F10on Windows/Linux or
Ctrl+Shift+Ron OS X.
- Test session results are shown in a special built-in test runner. It supports rerunning a single test/all failed tests and provides you with a history of test runs. Test results can be sorted by duration, and you can look into the output stream and error message details:
- Meanwhile, code generation makes it easier to write tests by generating test, test fixture or SetUp/TearDown Methods:
CMake coding assistance
CLion 1.2 can help you write CMake files quicker, re-using some earlier created templates. Use predefined live templates or create your own:
Benefit also from variable completion and new code style settings for forcing upper/lower case for CMake commands.
C++ language support
We continue making our C++ parser more accurate:
- The type of variables declared as auto is inferred correctly
- __LINE__ macro is supported
- The volatile keyword is handled correctly, and more.
CLion also now supports the following features for template parameters:
- Find Usages
- Quick Fix to remove unused template parameter:
Check the full list in our tracker.
Our main work on the debugger concentrated on boosting its performance. We’ve added lazy creation of GDB variables and a couple of other fixes.
In addition, references and arrays of wide/unicode characters are now correctly displayed in the debugger. (However, some problems still exist.)
The list of supported Version Control Systems includes Git, GitHub, Subversion, CVS, Mercurial, TFS, and Perforce. This release brings both common changes and per-system improvements in this area.
Talking about common changes, there is now a possibility to edit code right in the commit dialog (in case you’ve noticed some small issue and don’t want to go back to the editor).
As for per-systems improvements:
- New Shelve in Perforce action in UI.
- Features for working with patches when using Mercurial Queues.
- Git branches operation are available in the context menu in the VCS Log Viewer.
General IDE improvements
This release also includes a lot of general IDE features, like:
- Preview tab in Find in Path showing the first 100 results in real time.
- Support for regular expressions in Find and Replace.
- Updated default look & feel scheme on OS X, and better HiDPI support on Windows and Linux.
- JDK switcher on OS X to select between a custom JDK bundled with CLion and any other JDK found in your system:
By the way, this CLion release is aligned with updates for our other desktop products that comprise JetBrains Toolbox. Note that the new JetBrains licensing model is already effective starting November 2, 2015. Check out the current CLion pricing and plans on our site.
Develop with pleasure!
The CLion Team
Subscribe to Blog updates
Thanks, we've got you!
CLion 2023.3 EAP2: Support for Device Tree Files and Meson
The CLion 2023.3 Early Access Program has just started, featuring assembly view for files, enhanced C++ data flow analysis, and other updates. The CLion 2023.3 EAP2 build is ready for you to try! With it, you can finally start working on Meson projects in CLion and benefit from device tree format s…
The CLion 2023.3 Early Access Program Is Open
We recently shared our preliminary plans for v2023.3, which we plan to release at the end of November. We are now happy to announce that the CLion 2023.3 Early Access Program (EAP) starts today! Our EAP lets the community participate in discussions devoted to our products and influence the developm…
CLion 2023.2.2 Bug-Fix Update
The CLion bug-fix update 2023.2.2 is now available! The fixes included in this bug-fix update are listed below. Download build 232.9921.42 from our website, through the Toolbox App, as a snap package for Ubuntu, or via a patch from inside the IDE. DOWNLOAD CLION This update’s main highlights includ…
CLion 2023.2.1 Bug-Fix Update
The CLion bug-fix update 2023.2.1 is now available! If you haven’t yet upgraded to v2023.2, now is definitely a good time to do so! The key enhancements in the major 2023.2 update include: The Beta version of AI Assistant is now available as a plugin with limited access. Streamlined integratio…