CLion EAP news: CMake features and bug fixes
CLion EAP, build 141.351.4, is available for download. Let’s have a short overview of the changes and fixes.
CMake comments and commands completion
Several improvements were introduced for CMake. First, CLion now supports CMake 3 bracket-arguments and block comments syntax. Second, since this build comment line/comment block CLion features are available for CMake as well. To comment a line in CMakeLists.txt you don’t need to select it – simply put the caret in there and press
Cmd+/ (on OS X):
To comment a block you need to select it and press
Alt+Cmd+/ (on OS X):
Another exciting feature is CMake commands completion! Start typing the command name to get the list of matching suggestions. To save even more time, enter just the first letters of the name’s parts for Snake case matching or even any part of the command name (Middle matching):
Code style settings
To better match the Google C++ style guide (which we consider a reasonable default for C/C++ code), CLion now wraps and aligns long list of function parameters, call arguments and initialisers by default. If you prefer other settings feel free to change them in Editor | Code Style | C/C++.
Fixes for auto-include feature and Rename refactoring
In this EAP we’ve fixed two sets of frustrating problems. First one addresses the auto-include feature:
- Incorrect include added when auto-complete a variable that has the same name as another variable in the global scope (CPP-1057).
- Incorrect auto-import of OS X frameworks (CPP-1099).
- Incorrect auto-import in case of refactorings (CPP-1447).
We still know the cases when auto-import behaves in a wrong way and thus going to continue the work. Of course, feel free to report new problems with auto-include to us.
Another set of fixed problems is about Rename refactoring.
- Problem with Rename refactoring invoked on constructor call (CPP-2239).
- Problem with Rename refactoring for std containers (CPP-2240).
Build and Run Configurations fix
In Run | Edit Configurations dialog you can as usual add another configuration before the current one. Still now in case the configuration is non-executable CLion reasonably won’t attempt to run it.
We’ve bundled Oracle 1.8u40 JRE on Linux to make CLion installation easier. In case you are not happy with it, feel free to set the path to other JRE to
CL_JDK environment variable.
And for our OS X users we have even more exciting news! You probably know that we do recommend Apple JDK 1.6 because of the critical issues with JDK 1.7 and JDK 1.8. But with update to OS X 10.10 users noticed a very annoying issue with graphical glitches. Recently we’ve started our work on custom build of JDK 1.8 with fixes by JetBrains team. Thus a new distribution package targeting OS X Yosemite users experiencing graphical glitches with Apple JDK is here! If you got used to JDK 1.8 you can try this as well – some fonts anti-aliasing problems were addressed there. And of course we do really appreciate your feedback, comments and issue reports here – the work is still in progress.
Many small fixes in parsing and resolve were introduced in this build as well. The full list of fixed issues can be found in our tracker.
Yours as always,
The CLion Team
Subscribe to Blog updates
Thanks, we've got you!
CLion 2023.3 Release Candidate
CLion 2023.3 is on its way, and the release candidate for v2023.3 is already available! To install CLion 2023.3 RC (build 233.11799.171), download it from the website, update via the Toolbox App, or use this snap package (for Ubuntu). You need an active subscription or a trial license to use CLi…
CLion Nova: A New Update With Various Bug Fixes
CLion Nova, a free preview of CLion with the ReSharper C++/Rider C++ language engine, was announced recently. We’re excited to see how well you liked the first build! There are about 3,700 users right now and the overall feedback is mostly positive, especially that which is related to performance an…
CLion 2023.3 Goes Beta
The Beta version of CLion Classic 2023.3 is now available with key improvements and changes that are expected in the upcoming release. Download build 233.11799.37 from our website, via the Toolbox App, or as a snap package for Ubuntu. If you are using CLion Nova, note that we do not plan to release…
CLion Nova Explodes onto the C and C++ Development Scene
TL;DR Today, we’re announcing a free early preview of CLion, which uses the ReSharper C++/Rider C++ language engine instead of the CLion "legacy" engine. The Preview build is available via our dedicated Toolbox App feed. At some point in 2024, depending on the results of the feedback coll…