JetbrainsIgor AkhmetovAnnouncement
ReSharper C++ 2026.3: Class Layout, Format String Analysis, And More
Summary
ReSharper C++ 2026.3 introduces a Class Layout tool window that visualizes the memory layout of classes, structs, and unions, including field offsets, padding, and virtual table pointers. Format string analysis now covers std::format, std::print, and the {fmt} library, checking replacement fields, argument types, and indexing rules. The Change Signature refactoring works on constructors and can add or remove static and explicit specifiers, while Extract Method gains placement and constexpr options. New CUDA inspections verify execution space rules, memory space specifiers, and CUDA Tile model restrictions. The bundled Clang-Tidy binary has been updated to LLVM 23, and Out-of-Process mode now supports the Includes Analyzer and other fixes.
Approach / What changed
The release adds a Class Layout tool window that visualizes memory layout, extends format string analysis to std::format, std::print, and {fmt}, updates Change Signature and Extract Method refactorings, and introduces new CUDA inspections for execution spaces, memory spaces, and the CUDA Tile model.
Takeaways
The Class Layout tool window shows field offsets, padding, base class subobjects, and vtable pointers, helping identify wasted space and the effect of alignment directives.
Format string analysis now covers std::format, std::print, and {fmt}, highlighting replacement fields, reporting invalid fields, and checking format specifications against argument types.
New CUDA inspections check execution space rules, memory space specifier validity, and CUDA Tile model restrictions, including detecting goto/return in tile_global functions.
FAQ
How do I open the Class Layout tool window?
Place the caret on a class name or any reference to a class type, then choose ReSharper | Inspect | Class Layout, or select the Class Layout item in the Alt+Enter menu.
Which functions does the new format string analysis cover?
The analysis covers format, format_to, format_to_n, formatted_size, print, and println from both the std and fmt namespaces. It highlights replacement fields, reports invalid fields, missing and unused arguments, and checks format specifications against argument types.
Are there any constructor calls the Change Signature refactoring cannot update?
Some constructor calls, such as implicit conversions or calls through a custom factory template, cannot be found and therefore are not updated by the refactoring.
Source and freshness
- Source
- blog.jetbrains.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.