Yeah, yet that is exactly the approach being pushed by those on the profiles camp.
Further, the clang tidy and VC++ analysis based on some of the previous work, e.g. lifetime analysis paper from 2015, barely work, full of false positives.
I was looking forward to it in VC++, and to this day in VC++ latest, it still leaves too much on the table.
This is a not a jab against static analyzers, by all means use them, but I don't think they are a good fit as part of the language.