[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:58 PDT 2024


================
@@ -269,6 +271,40 @@ void Sema::inferLifetimeBoundAttribute(FunctionDecl *FD) {
   }
 }
 
+static bool IsPointerLikeType(QualType QT) {
+  QT = QT.getNonReferenceType();
+  // if (QT->isPointerType())
----------------
hokein wrote:

any reason to comment it out? I think having this should fix some FIXMEs in the test.

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


More information about the cfe-commits mailing list