================
@@ -2256,6 +2256,10 @@ class UnsafeBufferUsageReporter : public 
UnsafeBufferUsageHandler {
         Range = UO->getSubExpr()->getSourceRange();
         MsgParam = 1;
       }
+    } else if (const auto *CtorExpr = dyn_cast<CXXConstructExpr>(Operation)) {
+      S.Diag(CtorExpr->getLocation(),
+             diag::warn_unsafe_buffer_usage_in_container)
+          << 0;
----------------
jkorous-apple wrote:

Assuming we remove the warning message parameter we should not pass the 
argument here.

https://github.com/llvm/llvm-project/pull/77148
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to