================
@@ -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
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits