[clang] [clang] Don't consider the lifetimeboundCall when analyzing the gsl pointer construction. (PR #114044)

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 30 06:29:51 PDT 2024


================
@@ -1094,6 +1094,24 @@ static bool pathOnlyHandlesGslPointer(IndirectLocalPath &Path) {
   return false;
 }
 
+static bool
+isLifetimeboundInterleaveInGSL(llvm::ArrayRef<IndirectLocalPathEntry> PathRef) {
----------------
hokein wrote:

> I was wondering if we can also look at the types here. 

I had a similar thought and did a quick attempt yesterday. While it resolved this specific case, it introduced a few new issues. I may need to dig a bit deeper into it, so I’ll explore this approach further.


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


More information about the cfe-commits mailing list