Early Access Program

ReSharper C++ 2021.1 EAP: Updates to Unreal Engine Support, and New Code Inspections

A new EAP build for ReSharper C++ 2021.1 is here! Here are a couple of new features we’ve introduced over the last few builds:

  • Code analysis: two new inspections, “Variable can be moved to inner scope” and “Redundant cast expression”, are available together with the corresponding quick-fixes, as well as a set of quick-fixes for conversion errors.
  • Unreal Engine: a postfix template for Cast, support for the RIGVM_METHOD reflection macro, and initial support for Unreal Engine 5.

As usual, the EAP build is free to use and available for download from our website, or via the Toolbox App.

DOWNLOAD RESHARPER C++ 2021.1 EAP

Code analysis

To improve readability and limit the scope in which a variable can be used, ReSharper C++ will suggest a quick-fix to move a variable to the inner scope if it is introduced before you need it:

Variable can be moved to inner scope

Another new inspection detects when the cast is redundant and can be deleted:

Redundant cast expression

We’ve also added a bunch of quick-fixes for conversion errors. ReSharper C++ will suggest using c_str(), to_string(), get(), value(), data(), operator *, operator &, dynamic_cast<> or static_cast<>, etc., to resolve the error.

Quick-fixes for conversion errors

Unreal Engine

The Unreal Engine’s Cast for type-safe dynamic casting is now available as a postfix template in code completion:

Postfix template for Cast

In this build, we’ve added support for another Unreal Engine specific reflection macro – RIGVM_METHOD. ReSharper C++ now handles it correctly:

RIGVM_METHOD reflection macro

We’ve also introduced initial support for Unreal Engine 5 with intuitive fixes based on feedback from the Epic Games team. This means you’ll be able to try out the new features as soon as it is officially released.

That’s all for now! The full list of fixed issues can be found in our tracker.
Please check out this build and let us know what you think.

DOWNLOAD RESHARPER C++ 2021.1 EAP

Your ReSharper C++ team
JetBrains
The Drive to Develop

image description