[clang] [clang] Introduce [[clang::lifetime_capture_by(X)]] (PR #111499)
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 22 00:44:57 PDT 2024
================
@@ -269,6 +271,40 @@ void Sema::inferLifetimeBoundAttribute(FunctionDecl *FD) {
}
}
+static bool IsPointerLikeType(QualType QT) {
----------------
hokein wrote:
we have a similar function in the CheckExprLifetime.cpp, we can move it to `Sema.h` to make it reusable.
https://github.com/llvm/llvm-project/pull/111499
More information about the cfe-commits
mailing list