Followup to D127898. This patch updates bugprone-unchecked-optional-access to use the new diagnoseCFG function instead of just looking at the exit block.
A followup to this will update the optional model itself to use a noop lattice rather than redundantly computing the diagnostics in both phases of the analysis.
Please use the range-based llvm;:move() from llvm-project/llvm/include/llvm/ADT/STLExtras.h.