CLion starts 2017.1 EAP: convert variable type to auto, zero latency typing and various fixes

Hi,

Today we are glad to announce that the first CLion 2017.1 EAP build (171.2613.3) is available for download.
Clion_2017_1EAP@2x_img
You can install it side by side with your current stable CLion version, no active subscription required.


Download CLion 2017.1 EAP

Short summary:

Upd. More C++14 support (generic lambdas, variable templates and generalized lambda captures) is also included into CLion 2017.1 EAP.

Upd2. Precompile headers and -include support is added to CLion 2017.1 EAP.

Upd3. CLion EAP introduces MSVC compiler support.

Upd4. Disassembly view in debugged when sources and Catch unit test framework support are now available in CLion 2017.1 EAP.
Continue reading

Posted in Announcement, Early Access Preview | Tagged , , , , , | 46 Comments

CLion 2017.1 Release Candidate 2

Hi,

CLion 2017.1 is just around the corner, and today we are rolling out CLion 2017.1 Release Candidate 2 (build 171.3780.103). Give it a try, and if you find any bug at all, please file an issue in our tracker.


Download CLion 2017.1 RC2

Please note that to use CLion 2017.1 RC2 you need to have an active subscription (or start a 30-day evaluation period).

CLion 2016.3.5

We are also rolling out CLion 2016.3.5 update (build 163.15188.10). Check the release notes here.

Your CLion Team

JetBrains
The Drive to Develop

Posted in Announcement | Tagged , | 16 Comments

CLion 2017.1 Release Candidate

Hi,

Today we are glad to announce CLion 2017.1 Release Candidate (build 171.3780.43). As we are approaching the final steps towards the CLion 2017.1 release, we kindly ask you to share your feedback and comments with us and report any bug at all to our tracker.


Download CLion 2017.1 Release Candidate

If you use GCC as a compiler and have precompiled headers in your project, you’ll be glad to know that since now CLion can correctly resolve symbols from PCH in this case (CPP-8729).

Release notes are available by the link.

Your CLion Team

JetBrains
The Drive to Develop

Posted in Announcement | Tagged , , | 13 Comments

CLion 2017.1 EAP: nested namespaces and various fixes

Hi,

New CLion 2017.1 Early Access Program build (171.3780.24) is now available for download. You will get a notification about a patch-update in case you are using previous EAP build (171.3691.13).


Download CLion 2017.1 EAP

It’s time for C++17!

Great news! We’ve started C++17 support in CLion. Nested namespaces can now be correctly resolved and highlighted in CLion:
nested_name
Continue reading

Posted in Early Access Preview | Tagged , , , , | 9 Comments

To Catch a CLion

catch
CLion is a cross-platform IDE for C++ development (which happens to have a built in test runner).

Catch is a cross-platform test framework for C++.

I’m the original author of Catch and am now working at JetBrains so this seems to be an ideal match! As of the 2017.1 release (or since EAP 171.3691.13) I’m pleased to say that CLion fully supports Catch as a first class test framework. That means you can create Catch test runner configurations that let you specify test names (with wildcards) or tags, see the results of your test runs, hierarchically, in the test runner window, and can re-run failing tests, or the test where the cursor is, with just a single shortcut. You can even run all tests in a source file.

But why would you want to use Catch in the first place? In the post I’ll take you through using Catch with CLion’s new integration and give you a flavour of what to expect.

Continue reading

Posted in Tips'n'Tricks | Tagged , , , | 5 Comments

CLion 2017.1 EAP: Disassembly view, Catch support and MSVC changes

Hi,

Last week we announced experimental support for the Visual C++ compiler in CLion. This week brings more exciting features, like disassembly view for debugger and Catch test framework support! A new EAP build, 171.3691.13, is now available for download. And you will get a notification about a patch-update in case you are using the previous EAP build (171.3566.4).


Download CLion 2017.1 EAP

In this EAP:

Continue reading

Posted in Announcement, Early Access Preview | Tagged , , , , | 15 Comments

CLion 2017.1 EAP: first steps to ASM and MSVC

Hi,

A new CLion 2017.1 EAP (build 171.3566.4) is now available for download. You will get a notification about a patch-update in case you are using the previous EAP build (171.3224.8).

This build includes a lot of preliminary work for the upcoming big changes: disassembly view for debugger and Microsoft C++ compiler support. While these features are not quite ready yet, this EAP build introduces important changes. Your help at this stage is highly appreciated, so please check the build and submit any issue to our tracker.


Download CLion 2017.1 EAP

Assembly language

Starting with this build, CLion’s editor can highlight code written in assembly language:
asm_hello
The files are detected by the .s and .asm extensions (configured for you in Settings | Editor | File Types | Assembly Language). This works with a few limitations, however:

  • Only AT&T dialect is supported
  • Assembler with preprocessor is not supported

This work is the first step towards a disassembly view in debugger, which is going to come shortly to CLion EAPs.
Continue reading

Posted in Announcement, Early Access Preview | Tagged , , , | 18 Comments

CLion 2016.3.3 bug-fix update

Hi,

CLion 2016.3.3 bug-fix update (build 163.13906.4) is now available. You can download it from our website or install an update from the IDE if you’re using CLion 2016.3.2.

This build mostly addresses problems with debugger:

Besides, CLion now automatically detects invalid file path in fields like Working directory, etc.

For a full list of addressed issues please see the Release notes.

The CLion Team
JetBrains
The Drive to Develop

Posted in Announcement | Tagged , | 3 Comments

CLion 2017.1 EAP: Debugger fixes, IDE macros and new CMake

Hi,

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__
    macros_ide

The values correspond to the current IDE’s version, for example:

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
JetBrains
The Drive to Develop

Posted in Announcement, Early Access Preview | Tagged , , , | Leave a comment

CLion 2017.1 EAP: precompiled headers and -include

Hi,

CLion 2017.1 EAP builds were mainly focused on C++14 features support and various code analysis improvements, as well as zero latency typing mode (that seems to improve the editor performance in many cases). Today we are happy to announce new EAP build, 171.3019.8.


Download CLion 2017.1 EAP

C++14: Variable templates and generalized lambda captures

We are moving forward with C++14 support in CLion and today we are glad to announce that variable templates (CPP-6419) and generalized lambda captures (CPP-4545) are now supported in CLion. That means that the only thing left from C++14 is constexpr.

Precompiled headers and -include support

To reduce compilation time and keep the code well-structured, especially on a large-scale code bases, precompiled headers and -include compiler option can be used. They guide the compiler to reuse the information about expensive includes (like many header files included everywhere).
In this case the IDE has to understand where to locate the precompiled headers and headers included via -include option, in order to correctly resolve symbols from such files and provide correct code highlighting, code generation and navigation, refactorings, etc.
The work on this feature in CLion has started in this EAP build:
pch

Current limitations

In case of GCC, it’s impossible to get original PCH filename using preprocessor options like -E, -fpch-preprocess. Thus for CLion to resolve symbols from the precompiled headers correctly, you need to compiler PCH with dependency tracking enabled (with option like -MD or -MMD).

Alternatively, you can put the original file near the PCH. (CPP-8729).

Other fixes

This build also addresses a problem with TArray widely used in Unreal Engine 4 projects – no more incorrect ‘not a valid range type’ warning there.

The full release notes are available here.

The CLion Team
JetBrains
The Drive to Develop

Posted in Announcement, Early Access Preview | Tagged , , , | 5 Comments

CLion 2017.1 EAP: more C++14 support

Hi,

Last week CLion 2017.1 Early Access Program started with a new make auto intention, auto return type support, zero latency typing mode and many important improvements. This week a new EAP build (172.2822.8) is available. In case you use the previous EAP build, you should get a notification in the IDE about a patch update shortly.


Download CLion 2017.1 EAP

Generic lambdas

Modern C++ standards support is one of our top-priority task for this year. We keep working on C++14, and while first EAP brought auto return type support, this build comes with the generic lambdas support. This includes correct type inference and corresponding code analysis checks:
generic_lambda_type

More C++14 features are coming to CLion in the next EAP builds. You can check what’s left in our webhelp.

Decltype cases

This EAP also addresses several cases with decltype when the code was not resolved correctly:

  • decltype(auto) used in trailing return (CPP-6075)
  • Constructors using decltype (CPP-8195)

Other fixes

Besides, this build includes a couple of other fixes for incorrect code analysis or refactoring:

  • Fix for the incorrect Explicit type required here warning when declaring a friend class (CPP-2637)
  • The refactoring of the ambiguous calls is disabled to avoid problems (CLion shows Function foo is ambiguously referenced warning in this case)

That’s about it. The full release notes are available here.


Download CLion 2017.1 EAP

The CLion Team
JetBrains
The Drive to Develop

Posted in Announcement, Early Access Preview | Tagged , , | 16 Comments