Skip to content

[Option] Use a range-based for loop (NFC) #145446

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

Conversation

kazutakahirata
Copy link
Contributor

No description provided.

Copy link
Contributor

@arsenm arsenm left a comment

Choose a reason for hiding this comment

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

Can we move Values to use unique_ptr and delete the whole thing?

@kazutakahirata
Copy link
Contributor Author

Can we move Values to use unique_ptr and delete the whole thing?

@arsenm I like the idea, but the interface here is complicated. This class sometimes owns these strings, and sometimes it doesn't. OwnsValues keeps track of the ownership.

@kazutakahirata kazutakahirata merged commit 8d9911e into llvm:main Jun 24, 2025
8 checks passed
@kazutakahirata kazutakahirata deleted the cleanup_20250623_range_for_llvm_Option branch June 24, 2025 07:46
DrSergei pushed a commit to DrSergei/llvm-project that referenced this pull request Jun 24, 2025
anthonyhatran pushed a commit to anthonyhatran/llvm-project that referenced this pull request Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants