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

Function GetSubstTemplateTypeParmType

InsightsHelpers.cpp:1047–1056  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1045//-----------------------------------------------------------------------------
1046
1047static const SubstTemplateTypeParmType* GetSubstTemplateTypeParmType(const Type* t)
1048{
1049 if(const auto* substTemplateTypeParmType = dyn_cast_or_null<SubstTemplateTypeParmType>(t)) {
1050 return substTemplateTypeParmType;
1051 } else if(const auto& pointeeType = t->getPointeeType(); not pointeeType.isNull()) {
1052 return GetSubstTemplateTypeParmType(pointeeType.getTypePtrOrNull());
1053 }
1054
1055 return nullptr;
1056}
1057//-----------------------------------------------------------------------------
1058
1059static const DeclRefExpr* FindVarDeclRef(const Stmt* stmt)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected