Improved Null Pointer Dereference Detection in Visual Studio 2022 version 17.0...--Gabor Horvath
Give it a try!
Improved Null Pointer Dereference Detection in Visual Studio 2022 version 17.0 Preview 4
by Gabor Horvath
From the article:
The C++ static analysis team is committed to making your C++ coding experience as safe as possible. We are adding richer code safety checks and addressing high impact customer feedback bugs posted on the C++ Developer Community page. Thank you for engaging with us and giving us great feedback on the past releases and early previews leading to this point. Below is the detailed overview of a new experimental code analysis check that can detect null pointer dereference errors, along with a comparison to an existing check that has the same purpose...

Another keynote to look forward to on-stage in Aurora, CO, USA, and livestreamed to online attendees:
New capabilities.
Live in Aurora, CO, USA: