[clang] [clang][Diagnostics] Add source range to uninitialized diagnostics (PR #65896)

via cfe-commits cfe-commits at lists.llvm.org
Sun Sep 10 05:38:45 PDT 2023


================
@@ -4443,7 +4444,7 @@ struct CompoundAssignSubobjectHandler {
       return foundVector(Subobj, SubobjType);
     case APValue::Indeterminate:
       Info.FFDiag(E, diag::note_constexpr_access_uninit)
-          << /*read of=*/0 << /*uninitialized object=*/1;
+          << /*read of=*/0 << /*uninitialized object=*/1 << E->getSourceRange();
----------------
cor3ntin wrote:

Did you run clang-format?

https://github.com/llvm/llvm-project/pull/65896


More information about the cfe-commits mailing list