Early Access Program News

CLion 2017.3 EAP: MSVC extensions, multiple compilers on one project and more

Hi,

Please welcome the new EAP build of CLion 2017.3 (173.3188.25). Download the build by the link below. No license is required for this build, and you can install it side by side with your stable CLion version. Give it a try and let us know your feedback here or in the issue tracker.

Download CLion 2017.3 EAP

MSVC extensions

With an experimental support for Microsoft Visual C++ compiler in CLion, we’ve received complaints about incorrect code highlighting and false errors in code analysis in case MSVC extensions are used. That’s why we’ve started the work in this direction and this EAP build brings some important results. CLion now supports:

  • __uuidof, __forceinline, __unaligned, and __alignof keywords
  • Pointer type attributes: __ptr32, __ptr64, __uptr, __sptr
  • MSVC built-in data types: (unsigned) __int8, (unsigned) __int16, (unsigned) __int32, (unsigned) __int64, __wchar_t
  • Additional format specifiers, like %I32 and %I64

Besides, CLion can now treat clang’s -fms-extensions flag correctly.

Switch C/C++ compilers with ease

These changes allow you to conveniently switch compilers on one project. This could be helpful in case you’d prefer to test/debug with various compiler versions, do some extensive testing with several GCC/Clang/MSVC compilers on the same project or just easily configure a compiler for your project in CLion.
Recently we’ve introduced multiple toolchains support in CLion 2017.3 EAP. This made it possible to have several toolchains at once on the same project and switch easily between them. Updated Toolchains page now allows you to select Make, C and C++ compilers:

multiple_compilers

You can either rely on a compiler/Make detected by CMake or select a custom one. Note, that CMake options -DCMAKE_C_COMPILER and -DCMAKE_CXX_COMPILER take precedence over these compiler settings.

If the compiler is changed, the project will be automatically reloaded to apply the changes (CMakeCache.txt is cleared and CMake is regenerated). By the way, the same happens in case you change the CMake options in Settings/Preferences | Build, Execution, Deployment | CMake.

Other changes

We continue our work on avoiding bogus warnings and errors in the code highlighter and inspections for the C++17 features that are not yet supported in CLion. This build fixes an annoying issue with marking code as unreachable in case constexpr if is used.

That about wraps it up! Full release notes are available by the link.

Here is a quick reminder of the changes we’ve already made to CLion 2017.3 EAP:

Download CLion 2017.3 EAP

Your CLion Team
The Drive to Develop

image description

Discover more