Early Access Program News

CLion EAP news: CMake features and bug fixes

Hi everyone,

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 Ctrl+/(on Windows/Linux), Cmd+/ (on OS X):
To comment a block you need to select it and press Ctrl+Shift+/(on Windows/Linux), 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.

Java updates
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

image description