================
@@ -880,6 +883,24 @@ void StreamChecker::preReadWrite(const FnDescription *Desc,
   }
 }
 
+void StreamChecker::preWrite(const FnDescription *Desc, const CallEvent &Call,
----------------
NagyDonat wrote:

I agree that `std::bind` is hard to follow, and dedicated handlers dispatching 
to common implementations is a better model.

The "Copy-pasting their implementation while specializing it" could be even 
better if the common parts are lifted out into helper functions; but I strongly 
suggest that we should avoid code duplication.

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

Reply via email to