-
Notifications
You must be signed in to change notification settings - Fork 15.1k
[LLDB][DWARF] Use the same qualified name computation for Rust #165840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
2d18b17
f7d2b1d
542ce3f
c744c51
8a535e9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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) && | ||
|
||
| !Language::LanguageIsRust(language)) || | ||
| unique_typename.IsEmpty()) | ||
| return; | ||
| decl_declaration.Clear(); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -316,6 +316,10 @@ bool Language::LanguageIsCPlusPlus(LanguageType language) { | |
| } | ||
| } | ||
|
|
||
| bool Language::LanguageIsRust(LanguageType language) { | ||
| return language == eLanguageTypeRust; | ||
|
||
| } | ||
|
|
||
| bool Language::LanguageIsObjC(LanguageType language) { | ||
| switch (language) { | ||
| case eLanguageTypeObjC: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would reword this to something like:
"FIXME: Rust pretends to be C++ for now, so use C++ name qualification rules"