| 875 | //----------------------------------------------------------------------------- |
| 876 | |
| 877 | static 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 |
no test coverage detected