================ @@ -2256,6 +2256,17 @@ class UnsafeBufferUsageReporter : public UnsafeBufferUsageHandler { Range = UO->getSubExpr()->getSourceRange(); MsgParam = 1; } + } else if (const auto *CtorExpr = dyn_cast<CXXConstructExpr>(Operation)) { + if (CtorExpr->getConstructor()->getCanonicalDecl()->getNameAsString() == + "span") ---------------- jkorous-apple wrote:
Please ignore if the code above already takes care of this but can we compare the fully qualified name against "std::span" to make sure that we don't get tripped up by classes like `my::nonstd::span`? https://github.com/llvm/llvm-project/pull/101583 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits