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

Function IsPrimaryTemplatePackExpansionExpr

CodeGenerator.cpp:1200–1204  ·  view source on GitHub ↗

In a primary template we can see a ParenListExpr with a PackExpansionExpr. With the equal sign we need a type.

Source from the content-addressed store, hash-verified

1198
1199// In a primary template we can see a ParenListExpr with a PackExpansionExpr. With the equal sign we need a type.
1200static bool IsPrimaryTemplatePackExpansionExpr(const ParenListExpr* stmt)
1201{
1202 return stmt and stmt->getNumExprs() and isa_and_nonnull<PackExpansionExpr>(stmt->getExpr(0)) and
1203 stmt->getType().isNull();
1204}
1205//-----------------------------------------------------------------------------
1206
1207void CodeGenerator::InsertArg(const LinkageSpecDecl* stmt)

Callers 1

InsertArgMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected