================
@@ -170,6 +194,17 @@ namespace {
       if (D && D->isParameterPack())
         return true;
 
+      if (D && D->isFunctionOrFunctionTemplate()) {
+        FunctionDecl *FD;
+        if (auto *FTD = dyn_cast<FunctionTemplateDecl>(D))
+          FD = FTD->getTemplatedDecl();
+        else
+          FD = cast<FunctionDecl>(D);
----------------
cor3ntin wrote:

Do we not have functions to do that somewhere? I feel like i see that sort of 
pattern all over

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

Reply via email to