[lldb][NFC] StringRef-ify name param in CreateClassTemplateDecl

This commit is contained in:
Raphael Isemann 2021-11-04 15:23:08 +01:00
parent a763d0010c
commit f6b7bcc64a
2 changed files with 5 additions and 6 deletions

View File

@ -1543,7 +1543,7 @@ static bool ClassTemplateAllowsToInstantiationArgs(
ClassTemplateDecl *TypeSystemClang::CreateClassTemplateDecl( ClassTemplateDecl *TypeSystemClang::CreateClassTemplateDecl(
DeclContext *decl_ctx, OptionalClangModuleID owning_module, DeclContext *decl_ctx, OptionalClangModuleID owning_module,
lldb::AccessType access_type, const char *class_name, int kind, lldb::AccessType access_type, llvm::StringRef class_name, int kind,
const TemplateParameterInfos &template_param_infos) { const TemplateParameterInfos &template_param_infos) {
ASTContext &ast = getASTContext(); ASTContext &ast = getASTContext();

View File

@ -343,11 +343,10 @@ public:
clang::FunctionDecl *func_decl, clang::FunctionTemplateDecl *Template, clang::FunctionDecl *func_decl, clang::FunctionTemplateDecl *Template,
const TemplateParameterInfos &infos); const TemplateParameterInfos &infos);
clang::ClassTemplateDecl * clang::ClassTemplateDecl *CreateClassTemplateDecl(
CreateClassTemplateDecl(clang::DeclContext *decl_ctx, clang::DeclContext *decl_ctx, OptionalClangModuleID owning_module,
OptionalClangModuleID owning_module, lldb::AccessType access_type, llvm::StringRef class_name, int kind,
lldb::AccessType access_type, const char *class_name, const TemplateParameterInfos &infos);
int kind, const TemplateParameterInfos &infos);
clang::TemplateTemplateParmDecl * clang::TemplateTemplateParmDecl *
CreateTemplateTemplateParmDecl(const char *template_name); CreateTemplateTemplateParmDecl(const char *template_name);