================
@@ -169,6 +171,14 @@ class OriginManager {
   template <typename T>
   OriginList *buildListForType(QualType QT, const T *Node);
 
+  void initializeThisOrigins(const Decl *D);
+
+  /// Pre-scans the function body (and constructor init lists) to discover
+  /// return types of [[clang::lifetimebound]] calls, registering them for
+  /// origin tracking.
+  void collectLifetimeboundOriginTypes(const AnalysisDeclContext &AC);
----------------
Xazax-hun wrote:

Similarly, in the future we might want to also support `lifetime_capture_by`, 
so I wonder if a more general name like collectLifetimeAnnotatedOriginTypes 
would be better? 

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

Reply via email to