[clang] [LifetimeSafety] Add report on misuse of clang::noescape (PR #177260)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Sun Jan 25 12:26:30 PST 2026


================
@@ -2927,6 +2927,17 @@ class LifetimeSafetyReporterImpl : public LifetimeSafetyReporter {
         << EscapeExpr->getSourceRange();
   }
 
+  void reportNoescapeViolation(const ParmVarDecl *ParmWithNoescape,
+                               const Expr *EscapeExpr) override {
+    S.Diag(ParmWithNoescape->getBeginLoc(),
----------------
vbvictor wrote:

removed

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


More information about the cfe-commits mailing list