We have big plans for 2021.2, so let’s go ahead and launch the Early Access Program for the next ReSharper C++ release! In this post we’ll outline our first steps: improvements for code generation, new inspections to modernize your code, and a lot of bug fixes.
Here are the main highlights:
_tie(..)_
and Type trait can be simplified using a template alias or a variable template.As usual, the EAP builds are free to use and let you try out all the newest features, but you should note that these builds might be unstable since they are works in progress. Join the Early Access Program and share your thoughts so that we can make ReSharper C++ better for you!
ReSharper C++ 2021.2 offers two new inspections that help you modernize your code:
_tie(..)_
: since C++17, you no longer need to use std::tie()
or boost::tie()
for unpacking a tuple or a pair – structured binding declarations help you simplify the code.To make code generation even more convenient, we’ve added a new batch of settings to let you configure generated function definitions. By default, ReSharper C++ generates functions with empty bodies, but now you can specify whether the generated functions should throw std::logic_error
, return a default value, or include code that will not compile.
ReSharper C++ will also now call the overridden function from the generated body of an overriding function. In an Unreal Engine project, the idiomatic Super
typedef will be used instead of an explicit class name:
Check out the new Code Editing | C++ | Code Generation settings page and let ReSharper C++ write all the boilerplate code for you!
We’ve also updated the bundled Clang-Tidy binary to Clang 12, adding new checks from the latest LLVM release:
On top of that, we’ve added support for the two new compiler switches from Visual Studio 16.10:
/std:c++20
language standard switch./await:strict
switch, which can be used if you want to use C++20-style coroutines but are targeting C++11 or C++14.#2021-2 #eap #newsletter