Skip to content

[-Wunsafe-buffer-usage] Add a subgroup -Wunsafe-buffer-usage-in-container #7899

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

Conversation

ziqingluo-90
Copy link

Add a sub diagnostic group under -Wunsafe-buffer-usage controlled by -Wunsafe-buffer-usage-in-container. The subgroup will include warnings on misuses of std::span, std::vector, and std::array.

(cherry picked from commit 4123b95)

…ainer` (llvm#75665)

Add a sub diagnostic group under `-Wunsafe-buffer-usage` controlled by
`-Wunsafe-buffer-usage-in-container`. The subgroup will include warnings
on misuses of `std::span`, `std::vector`, and `std::array`.

(cherry picked from commit 4123b95)
@ziqingluo-90
Copy link
Author

@swift-ci test

@t-rasmud
Copy link

This is a cherry-pick of a commit that's already reviewed, LGTM!

@ziqingluo-90 ziqingluo-90 merged commit 67c73ed into swiftlang:stable/20230725 Dec 18, 2023
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