New CLion 2017.1 Early Access Program build (171.3224.8) is now available for download. You will get a notification about a patch-update in case you are using previous EAP build (171.3019.8).
Download CLion 2017.1 EAP
Debugger fix for csh/tcsh shells
A problem with debugger not starting if the main shell is csh/tcsh (CPP-2919, CPP-8737, CPP-2328) was addressed in this build.
Project model and CMake
This build brings fixes for incorrect handling of the escaped symbols. These problems mostly affected MinGW users and led to CMake command run failures on the correct projects, unrecognized include_directories and more (CPP-3962, CPP-8726, CPP-8727). Huge overhaul was performed there and now seems all the problem are gone. Feel free to report an issue in case you find anything!
Besides, CMake 3.7 is now bundled into CLion.
Special IDE macro
While we are working hard on improving the CLion’s code parser, there are still cases which confuses CLion. For example, some preprocessor macros. We do encourage you all to report such cases to our tracker. However, in the meantime, find a workaround for such situations – special preprocessor macros to eliminate problematic definitions and to use some dummy definitions instead.
Find the following macros available now:
- General macros: __JETBRAINS_IDE__
- Per-ide variable: in CLion it’s __CLION_IDE__ , in AppCode – __APPCODE_IDE__ , in Android Studio – __STUDIO_IDE__
The values correspond to the current IDE’s version, for example:
#define __JETBRAINS_IDE__ 20170100L // for 2017.1
#define __JETBRAINS_IDE__ 20170101L // for 2017.1.1
The macros are undefined when you build/run your code, of course. They only affect the way your IDE parses the code.
Note, these macros are not available in completion for now (CPP-50) and their values are not shown in Quick Documentation (CPP-8576).
By the way, if you are looking for a way to check if the CMake script is called from CLion, there is an environment variable for this – CLION_IDE. Read more.
The full release notes are available here.
The CLion Team
The Drive to Develop