Skip to content

[lldb][NFCI] Remove typedef for TypeCategoryMap::ValueSP #65555

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

Merged
merged 1 commit into from
Sep 7, 2023

Conversation

bulbazord
Copy link
Member

lldb already has a ValueSP type. This was confusing to me when reading TypeCategoryMap, especially when ValueSP is not qualified. From first glance it looks like it's referring to a std::shared_ptr<lldb_private::Value> when it's really referring to a std::shared_ptr<lldb_private::TypeCategoryImpl>.

lldb already has a `ValueSP` type. This was confusing to me
when reading TypeCategoryMap, especially when `ValueSP` is not
qualified. From first glance it looks like it's referring to a
`std::shared_ptr<lldb_private::Value>` when it's really referring to a
`std::shared_ptr<lldb_private::TypeCategoryImpl>`.
Copy link
Member

@JDevlieghere JDevlieghere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I started looking at the diff before reading the description only to be confused by the exact same thing.

@bulbazord bulbazord merged commit 140f616 into llvm:main Sep 7, 2023
@bulbazord bulbazord deleted the rename-value-sp branch September 7, 2023 17:16
Copy link
Collaborator

@jimingham jimingham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A good change, Value is a pretty loaded word in lldb, and doesn't seem directly relevant here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants