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

Function FormatVarTemplateSpecializationDecl

CodeGenerator.cpp:877–891  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

875//-----------------------------------------------------------------------------
876
877static std::string FormatVarTemplateSpecializationDecl(const Decl* decl, std::string&& defaultName)
878{
879 std::string name{std::move(defaultName)};
880
881 if(const auto* tvd = dyn_cast_or_null<VarTemplateSpecializationDecl>(decl)) {
882 OutputFormatHelper outputFormatHelper{};
883 CodeGeneratorVariant codeGenerator{outputFormatHelper};
884
885 codeGenerator->InsertTemplateArgs(tvd->getTemplateArgs());
886
887 name += outputFormatHelper;
888 }
889
890 return name;
891}
892//-----------------------------------------------------------------------------
893
894/// \brief Find a \c DeclRefExpr belonging to a \c DecompositionDecl

Callers 1

InsertArgMethod · 0.85

Calls 1

InsertTemplateArgsMethod · 0.45

Tested by

no test coverage detected