Skip to content

Commit 7e6c437

Browse files
committed
[lldb][NFC] Remove name parameter from CreateFunctionTemplateDecl
It's unused and not documented.
1 parent 42b9a68 commit 7e6c437

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,7 @@ TypeSP DWARFASTParserClang::ParseSubroutine(const DWARFDIE &die,
12441244
clang::FunctionTemplateDecl *func_template_decl =
12451245
m_ast.CreateFunctionTemplateDecl(
12461246
containing_decl_ctx, GetOwningClangModule(die),
1247-
template_function_decl, name, template_param_infos);
1247+
template_function_decl, template_param_infos);
12481248
m_ast.CreateFunctionTemplateSpecializationInfo(
12491249
template_function_decl, func_template_decl, template_param_infos);
12501250
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1419,7 +1419,7 @@ static TemplateParameterList *CreateTemplateParameterList(
14191419

14201420
clang::FunctionTemplateDecl *TypeSystemClang::CreateFunctionTemplateDecl(
14211421
clang::DeclContext *decl_ctx, OptionalClangModuleID owning_module,
1422-
clang::FunctionDecl *func_decl, const char *name,
1422+
clang::FunctionDecl *func_decl,
14231423
const TemplateParameterInfos &template_param_infos) {
14241424
// /// Create a function template node.
14251425
ASTContext &ast = getASTContext();

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -346,11 +346,9 @@ class TypeSystemClang : public TypeSystem {
346346
std::unique_ptr<TemplateParameterInfos> packed_args;
347347
};
348348

349-
clang::FunctionTemplateDecl *
350-
CreateFunctionTemplateDecl(clang::DeclContext *decl_ctx,
351-
OptionalClangModuleID owning_module,
352-
clang::FunctionDecl *func_decl, const char *name,
353-
const TemplateParameterInfos &infos);
349+
clang::FunctionTemplateDecl *CreateFunctionTemplateDecl(
350+
clang::DeclContext *decl_ctx, OptionalClangModuleID owning_module,
351+
clang::FunctionDecl *func_decl, const TemplateParameterInfos &infos);
354352

355353
void CreateFunctionTemplateSpecializationInfo(
356354
clang::FunctionDecl *func_decl, clang::FunctionTemplateDecl *Template,

lldb/unittests/Symbol/TestTypeSystemClang.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ TEST_F(TestTypeSystemClang, TestFunctionTemplateConstruction) {
566566
// Create the actual function template.
567567
clang::FunctionTemplateDecl *func_template =
568568
m_ast->CreateFunctionTemplateDecl(TU, OptionalClangModuleID(), func,
569-
"foo", empty_params);
569+
empty_params);
570570

571571
EXPECT_EQ(TU, func_template->getDeclContext());
572572
EXPECT_EQ("foo", func_template->getName());
@@ -598,7 +598,7 @@ TEST_F(TestTypeSystemClang, TestFunctionTemplateInRecordConstruction) {
598598
// Create the actual function template.
599599
clang::FunctionTemplateDecl *func_template =
600600
m_ast->CreateFunctionTemplateDecl(record, OptionalClangModuleID(), func,
601-
"foo", empty_params);
601+
empty_params);
602602

603603
EXPECT_EQ(record, func_template->getDeclContext());
604604
EXPECT_EQ("foo", func_template->getName());

0 commit comments

Comments
 (0)