Skip to content
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

Don't initialize empty string_views. Find places that were not prepared. #2310

Merged

Conversation

hzeller
Copy link
Collaborator

@hzeller hzeller commented Dec 23, 2024

A string_view initialized with an empty string "" is different from a string_view that is empty initialized (it holds a nullptr). Make sure that all places that deal with string_views (from a testable perspective) also accept empty() with null string views.

A string_view initialized with an empty string "" is different from
a string_view that is empty initialized (it holds a nullptr).
Make sure that all places that deal with string_views (from a testable
perspective) also accept empty() with null string views.
@hzeller hzeller force-pushed the feature-20241223-empty-stringview branch from fed1508 to 2a441da Compare December 23, 2024 23:54
@hzeller hzeller merged commit 47836c4 into chipsalliance:master Dec 24, 2024
31 of 32 checks passed
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.

1 participant