Skip to content

Commit d26f1b0

Browse files
committed
rename arg
1 parent 1241bec commit d26f1b0

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ lldb_private::Type *DWARFDIE::ResolveTypeUID(const DWARFDIE &die) const {
379379
}
380380

381381
static CompilerContext GetContextEntry(DWARFDIE die,
382-
bool complete_template_names) {
382+
bool derive_template_names) {
383383
auto ctx = [die](CompilerContextKind kind) {
384384
return CompilerContext(kind, ConstString(die.GetName()));
385385
};
@@ -406,7 +406,7 @@ static CompilerContext GetContextEntry(DWARFDIE die,
406406
? CompilerContextKind::Union
407407
: CompilerContextKind::ClassOrStruct;
408408
llvm::StringRef name = die.GetName();
409-
if (!complete_template_names || name.contains('<'))
409+
if (!derive_template_names || name.contains('<'))
410410
return CompilerContext(kind, ConstString(name));
411411

412412
std::string name_storage = name.str();
@@ -420,7 +420,7 @@ static CompilerContext GetContextEntry(DWARFDIE die,
420420
}
421421
}
422422

423-
static void GetDeclContextImpl(DWARFDIE die, bool complete_template_names,
423+
static void GetDeclContextImpl(DWARFDIE die, bool derive_template_names,
424424
llvm::SmallSet<lldb::user_id_t, 4> &seen,
425425
std::vector<CompilerContext> &context) {
426426
// Stop if we hit a cycle.
@@ -442,7 +442,7 @@ static void GetDeclContextImpl(DWARFDIE die, bool complete_template_names,
442442
case DW_TAG_subprogram:
443443
case DW_TAG_variable:
444444
case DW_TAG_typedef:
445-
context.push_back(GetContextEntry(die, complete_template_names));
445+
context.push_back(GetContextEntry(die, derive_template_names));
446446
break;
447447
default:
448448
break;
@@ -453,15 +453,15 @@ static void GetDeclContextImpl(DWARFDIE die, bool complete_template_names,
453453
}
454454

455455
std::vector<CompilerContext>
456-
DWARFDIE::GetDeclContext(bool complete_template_names) const {
456+
DWARFDIE::GetDeclContext(bool derive_template_names) const {
457457
llvm::SmallSet<lldb::user_id_t, 4> seen;
458458
std::vector<CompilerContext> context;
459-
GetDeclContextImpl(*this, complete_template_names, seen, context);
459+
GetDeclContextImpl(*this, derive_template_names, seen, context);
460460
std::reverse(context.begin(), context.end());
461461
return context;
462462
}
463463

464-
static void GetTypeLookupContextImpl(DWARFDIE die, bool complete_template_names,
464+
static void GetTypeLookupContextImpl(DWARFDIE die, bool derive_template_names,
465465
llvm::SmallSet<lldb::user_id_t, 4> &seen,
466466
std::vector<CompilerContext> &context) {
467467
// Stop if we hit a cycle.
@@ -476,7 +476,7 @@ static void GetTypeLookupContextImpl(DWARFDIE die, bool complete_template_names,
476476
case DW_TAG_variable:
477477
case DW_TAG_typedef:
478478
case DW_TAG_base_type:
479-
context.push_back(GetContextEntry(die, complete_template_names));
479+
context.push_back(GetContextEntry(die, derive_template_names));
480480
break;
481481

482482
// If any of the tags below appear in the parent chain, stop the decl
@@ -500,10 +500,10 @@ static void GetTypeLookupContextImpl(DWARFDIE die, bool complete_template_names,
500500
}
501501

502502
std::vector<CompilerContext>
503-
DWARFDIE::GetTypeLookupContext(bool complete_template_names) const {
503+
DWARFDIE::GetTypeLookupContext(bool derive_template_names) const {
504504
llvm::SmallSet<lldb::user_id_t, 4> seen;
505505
std::vector<CompilerContext> context;
506-
GetTypeLookupContextImpl(*this, complete_template_names, seen, context);
506+
GetTypeLookupContextImpl(*this, derive_template_names, seen, context);
507507
std::reverse(context.begin(), context.end());
508508
return context;
509509
}

lldb/source/Plugins/SymbolFile/DWARF/DWARFDIE.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ class DWARFDIE : public DWARFBaseDIE {
7474
/// in Clang modules. This context will include any modules or functions that
7575
/// the type is declared in so an exact module match can be efficiently made.
7676
///
77-
/// \param[in] complete_template_names
77+
/// \param[in] derive_template_names
7878
/// If true, augments the returned names with template arguments derived
7979
/// from the child DIEs, if the names don't contained template arguments
8080
/// already. If false, the returned context will contain the names exactly
8181
/// as they are spelled in the debug info, regardless of whether that
8282
/// includes template arguments or not.
8383
std::vector<CompilerContext>
84-
GetDeclContext(bool complete_template_names = false) const;
84+
GetDeclContext(bool derive_template_names = false) const;
8585

8686
/// Get a context to a type so it can be looked up.
8787
///
@@ -94,14 +94,14 @@ class DWARFDIE : public DWARFBaseDIE {
9494
/// context. This is designed to allow users to efficiently look for types
9595
/// using a full or partial CompilerContext array.
9696
///
97-
/// \param[in] complete_template_names
97+
/// \param[in] derive_template_names
9898
/// If true, augments the returned names with template arguments derived
9999
/// from the child DIEs, if the names don't contained template arguments
100100
/// already. If false, the returned context will contain the names exactly
101101
/// as they are spelled in the debug info, regardless of whether that
102102
/// includes template arguments or not.
103103
std::vector<CompilerContext>
104-
GetTypeLookupContext(bool complete_template_names = false) const;
104+
GetTypeLookupContext(bool derive_template_names = false) const;
105105

106106
DWARFDeclContext GetDWARFDeclContext() const;
107107

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2740,8 +2740,8 @@ void SymbolFileDWARF::FindTypes(const TypeQuery &query, TypeResults &results) {
27402740
m_index->GetTypesWithQuery(query_simple, [&](DWARFDIE die) {
27412741
std::vector<CompilerContext> qualified_context =
27422742
query.GetModuleSearch()
2743-
? die.GetDeclContext(/*complete_template_names=*/true)
2744-
: die.GetTypeLookupContext(/*complete_template_names=*/true);
2743+
? die.GetDeclContext(/*derive_template_names=*/true)
2744+
: die.GetTypeLookupContext(/*derive_template_names=*/true);
27452745
if (query.ContextMatches(qualified_context))
27462746
if (Type *matching_type = ResolveType(die, true, true))
27472747
results.InsertUnique(matching_type->shared_from_this());

0 commit comments

Comments
 (0)