From 439d6d63ebc1173dbb6904428de67bd8624d08d7 Mon Sep 17 00:00:00 2001 From: Foster Brereton Date: Wed, 21 Nov 2018 16:36:17 -0800 Subject: [PATCH] added support for FunctionTemplateDecl when resolving type-parameter-n-m issues --- matchers/utilities.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/matchers/utilities.cpp b/matchers/utilities.cpp index ad6da82..e7447a5 100644 --- a/matchers/utilities.cpp +++ b/matchers/utilities.cpp @@ -568,11 +568,12 @@ std::string PostProcessTypeParameter(const clang::Decl* decl, std::string type) }; ForEachParent(decl, [&](const Decl* parent) { - // REVISIT (fbrereto) : Gotta do this for FunctionTemplateDecl, and ClassTemplateDecl if (auto* ctpsd = dyn_cast_or_null(parent)) { iterate_template_params(*ctpsd->getTemplateParameters()); } else if (auto* ctd = dyn_cast_or_null(parent)) { iterate_template_params(*ctd->getTemplateParameters()); + } else if (auto* ftd = dyn_cast_or_null(parent)) { + iterate_template_params(*ftd->getTemplateParameters()); } });