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

Method InsertTemplateGuardBegin

CodeGenerator.cpp:1569–1575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1567//-----------------------------------------------------------------------------
1568
1569void CodeGenerator::InsertTemplateGuardBegin(const FunctionDecl* stmt)
1570{
1571 if(stmt->isTemplateInstantiation() and stmt->isFunctionTemplateSpecialization()) {
1572 InsertInstantiationPoint(GetSM(*stmt), stmt->getPointOfInstantiation());
1573 mOutputFormatHelper.InsertIfDefTemplateGuard();
1574 }
1575}
1576//-----------------------------------------------------------------------------
1577
1578void CodeGenerator::InsertTemplateGuardEnd(const FunctionDecl* stmt)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected