| 3729 | //----------------------------------------------------------------------------- |
| 3730 | |
| 3731 | void CodeGenerator::InsertTemplate(const FunctionTemplateDecl* stmt, bool withSpec) |
| 3732 | { |
| 3733 | LAMBDA_SCOPE_HELPER(TemplateHead); |
| 3734 | |
| 3735 | mProcessingPrimaryTemplate = ProcessingPrimaryTemplate::Yes; |
| 3736 | |
| 3737 | // InsertTemplateParameters(*stmt->getTemplateParameters()); |
| 3738 | InsertArg(stmt->getTemplatedDecl()); |
| 3739 | |
| 3740 | mProcessingPrimaryTemplate = ProcessingPrimaryTemplate::No; |
| 3741 | |
| 3742 | RETURN_IF(not withSpec); |
| 3743 | |
| 3744 | for(const auto* spec : stmt->specializations()) { |
| 3745 | // For specializations we will see them later |
| 3746 | if(spec->getPreviousDecl()) { |
| 3747 | continue; |
| 3748 | } |
| 3749 | |
| 3750 | mOutputFormatHelper.AppendNewLine(); |
| 3751 | InsertArg(spec); |
| 3752 | mOutputFormatHelper.AppendNewLine(); |
| 3753 | } |
| 3754 | } |
| 3755 | //----------------------------------------------------------------------------- |
| 3756 | |
| 3757 | void CodeGenerator::InsertArg(const FunctionTemplateDecl* stmt) |
nothing calls this directly
no test coverage detected