[clang] [-Wunsafe-buffer-usage] Add unique_ptr <T[]> accesses (PR #156773)

via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 18 13:37:32 PDT 2025


================
@@ -1318,6 +1319,88 @@ static bool isSupportedVariable(const DeclRefExpr &Node) {
   return D != nullptr && isa<VarDecl>(D);
 }
 
+static bool isUniquePtrArray(const CXXRecordDecl *RecordDecl) {
----------------
shreya-jain wrote:

Added

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


More information about the cfe-commits mailing list