[clang] [analyzer] Add an ownership change visitor to StreamChecker (PR #94957)

DonĂ¡t Nagy via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 10 04:01:13 PDT 2024


================
@@ -168,8 +193,9 @@ REGISTER_MAP_WITH_PROGRAMSTATE(StreamMap, SymbolRef, StreamState)
 namespace {
 
 class StreamChecker;
-using FnCheck = std::function<void(const StreamChecker *, const FnDescription *,
-                                   const CallEvent &, CheckerContext &)>;
+using FnCheckTy = void(const StreamChecker *, const FnDescription *,
+                                   const CallEvent &, CheckerContext &);
+using FnCheck = std::function<FnCheckTy>;
----------------
NagyDonat wrote:

What is the goal of this change?

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


More information about the cfe-commits mailing list