Skip to content

Commit f6b7bcc

Browse files
committed
[lldb][NFC] StringRef-ify name param in CreateClassTemplateDecl
1 parent a763d00 commit f6b7bcc

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1543,7 +1543,7 @@ static bool ClassTemplateAllowsToInstantiationArgs(
15431543

15441544
ClassTemplateDecl *TypeSystemClang::CreateClassTemplateDecl(
15451545
DeclContext *decl_ctx, OptionalClangModuleID owning_module,
1546-
lldb::AccessType access_type, const char *class_name, int kind,
1546+
lldb::AccessType access_type, llvm::StringRef class_name, int kind,
15471547
const TemplateParameterInfos &template_param_infos) {
15481548
ASTContext &ast = getASTContext();
15491549

lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -343,11 +343,10 @@ class TypeSystemClang : public TypeSystem {
343343
clang::FunctionDecl *func_decl, clang::FunctionTemplateDecl *Template,
344344
const TemplateParameterInfos &infos);
345345

346-
clang::ClassTemplateDecl *
347-
CreateClassTemplateDecl(clang::DeclContext *decl_ctx,
348-
OptionalClangModuleID owning_module,
349-
lldb::AccessType access_type, const char *class_name,
350-
int kind, const TemplateParameterInfos &infos);
346+
clang::ClassTemplateDecl *CreateClassTemplateDecl(
347+
clang::DeclContext *decl_ctx, OptionalClangModuleID owning_module,
348+
lldb::AccessType access_type, llvm::StringRef class_name, int kind,
349+
const TemplateParameterInfos &infos);
351350

352351
clang::TemplateTemplateParmDecl *
353352
CreateTemplateTemplateParmDecl(const char *template_name);

0 commit comments

Comments
 (0)