[Lldb-commits] [lldb] [LLDB][DWARF] Use the same qualified name computation for Rust (PR #165840)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 31 01:59:05 PDT 2025
================
@@ -1700,7 +1700,11 @@ void DWARFASTParserClang::GetUniqueTypeNameAndDeclaration(
// For C++, we rely solely upon the one definition rule that says
// only one thing can exist at a given decl context. We ignore the
// file and line that things are declared on.
- if (!die.IsValid() || !Language::LanguageIsCPlusPlus(language) ||
+ // For Rust, we do the same since Rust also has a similar qualified name?
+ // Is there a better way to do this for Rust?
+ if (!die.IsValid() ||
+ (!Language::LanguageIsCPlusPlus(language) &&
----------------
Michael137 wrote:
can we split the language check into a separate if-statement? Makes it easier to read
https://github.com/llvm/llvm-project/pull/165840
More information about the lldb-commits
mailing list