Skip to content

Fix clang-tidy warning readability-qualified-auto - #4962

Merged
randombit merged 1 commit into
masterfrom
jack/fix-clang-tidy-readability-qualified-auto
Jul 10, 2025
Merged

Fix clang-tidy warning readability-qualified-auto#4962
randombit merged 1 commit into
masterfrom
jack/fix-clang-tidy-readability-qualified-auto

Conversation

@randombit

Copy link
Copy Markdown
Owner

No description provided.

@coveralls

coveralls commented Jul 6, 2025

Copy link
Copy Markdown

Coverage Status

coverage: 90.571% (+0.002%) from 90.569%
when pulling 0d57764 on jack/fix-clang-tidy-readability-qualified-auto
into a13f950 on master.

@randombit
randombit force-pushed the jack/fix-clang-tidy-readability-qualified-auto branch 4 times, most recently from 1e31da5 to de28120 Compare July 6, 2025 17:19

@reneme reneme left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I like!

Comment thread src/lib/x509/x509_dn.cpp
Comment on lines +37 to +39
// MSVC uses an actual iterator type for string_view, so we must use plain `auto` here
auto p1 = name1.begin(); // NOLINT(readability-qualified-auto)
auto p2 = name2.begin(); // NOLINT(readability-qualified-auto)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

ew! :(

This skips test_x509_rpki.cpp to avoid merge conflicts with other
ongoing work, so the warning is not enabled in this commit.
@randombit
randombit force-pushed the jack/fix-clang-tidy-readability-qualified-auto branch from de28120 to 0d57764 Compare July 9, 2025 11:23
@randombit randombit changed the title Enable and fix clang-tidy warning readability-qualified-auto Fix clang-tidy warning readability-qualified-auto Jul 9, 2025
@randombit

Copy link
Copy Markdown
Owner Author

To avoid creating (more) awful merge conflicts for #4890 I reverted the changes to test_x509_rpki.cpp and skipped on actually enabling the warning for now. After that lands I'll fix any remaining and enable the warning in the clang-tidy config.

@randombit
randombit merged commit 88e8dd9 into master Jul 10, 2025
45 checks passed
@randombit
randombit deleted the jack/fix-clang-tidy-readability-qualified-auto branch July 10, 2025 10:35
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.

3 participants