Skip to content

tidy: enforce and apply C++20 container contains() - #46660

Merged
jwendell merged 1 commit into
envoyproxy:mainfrom
jwendell:extensions-contains-enforce-clang-tidy
Aug 13, 2026
Merged

tidy: enforce and apply C++20 container contains()#46660
jwendell merged 1 commit into
envoyproxy:mainfrom
jwendell:extensions-contains-enforce-clang-tidy

Conversation

@jwendell

Copy link
Copy Markdown
Member

Enable the readability-container-contains clang-tidy check so that count(k)/find(k) != end() membership tests are flagged going forward, and apply the .contains() conversion across the non-extensions code (the extensions tree was cleaned up separately).

Readability cleanup with no behavior change.

Enable the `readability-container-contains` clang-tidy check so that
`count(k)`/`find(k) != end()` membership tests are flagged going forward,
and apply the `.contains()` conversion across the non-extensions code
(the extensions tree was cleaned up separately).

Readability cleanup with no behavior change.

Signed-off-by: Jonh Wendell <jwendell@redhat.com>
@jwendell
jwendell force-pushed the extensions-contains-enforce-clang-tidy branch from 4a39176 to 71863ae Compare August 12, 2026 12:29
@jwendell
jwendell marked this pull request as ready for review August 12, 2026 12:53
@envoyproxy envoyproxy deleted a comment from repokitteh-read-only Bot Aug 12, 2026
@jwendell
jwendell enabled auto-merge (squash) August 12, 2026 14:23
@jwendell
jwendell merged commit c8f5228 into envoyproxy:main Aug 13, 2026
28 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.

2 participants