MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / InsertTemplate

Method InsertTemplate

CodeGenerator.cpp:3731–3754  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3729//-----------------------------------------------------------------------------
3730
3731void 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
3757void CodeGenerator::InsertArg(const FunctionTemplateDecl* stmt)

Callers

nothing calls this directly

Calls 1

AppendNewLineMethod · 0.80

Tested by

no test coverage detected