================
@@ -160,11 +161,35 @@ class LifetimeChecker {
     }
   }
 
+  /// Returns the declaration of a function that is visible across translation
+  /// units, if such a declaration exists and is different from the definition.
+  static const FunctionDecl *getCrossTUDecl(const ParmVarDecl &PVD,
----------------
kashika0112 wrote:

Thank you for pointing this out. I have updated the logic to loop through the 
redecls to find the one in a different file than the source location. Also 
added the test case you've mentioned.

https://github.com/llvm/llvm-project/pull/171972
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to