================
@@ -80,6 +80,81 @@ struct Response {
     return R;
   }
 };
+
+// Retrieve the primary template for a lambda call operator. It's
+// unfortunate that we only have the mappings of call operators rather
+// than lambda classes.
+const FunctionDecl *
+getPrimaryTemplateOfGenericLambda(const FunctionDecl *LambdaCallOperator) {
+  while (true) {
----------------
erichkeane wrote:

What cases do we have where this takes more than 1 step?  I also wonder if we'd 
be better off finding the primary `CXXRecordDecl`, then picking it up from 
there?  We could use `getTemplateInstantiationPattern` then 
`getDescribedClassTemplate` I think?

https://github.com/llvm/llvm-project/pull/82310
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to