[clang] Respect the [[clang::unsafe_buffer_usage]] attribute for constructors (PR #91777)

Dana Jansens via cfe-commits cfe-commits at lists.llvm.org
Wed May 15 13:19:47 PDT 2024


================
@@ -2856,7 +2916,7 @@ getFixIts(FixableGadgetSets &FixablesForAllVars, const FixitStrategy &S,
       }
 #ifndef NDEBUG
       Handler.addDebugNoteForVar(
-          VD, F->getBaseStmt()->getBeginLoc(),
+          VD, F->getSourceLoc(),
----------------
danakj wrote:

I will leave this for a followup, yeah. Thanks

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


More information about the cfe-commits mailing list