[clang] [LifetimeSafety] Track origins through std::function (PR #191123)

Zhijie Wang via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 13 23:51:59 PDT 2026


================
@@ -67,6 +67,7 @@ struct ReturnThisPointer {
 //--- test_source.cpp
 
 #include "test_header.h"
+#include "Inputs/lifetime-analysis.h"
----------------
aeft wrote:

@usx95 Is it safe to include `lifetime-analysis.h` here? Do you have any suggestion? I include it because I need to reuse std::function definition.

Unlike other tests, this file has a fixit RUN line that might modify the source. I guess this why this has specific test_header.h/test_source.cpp

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


More information about the cfe-commits mailing list