Skip to content

Clang-Tidy: modernize-use-ranges#5369

Open
WeiqunZhang wants to merge 3 commits into
AMReX-Codes:developmentfrom
WeiqunZhang:modernize-use-ranges
Open

Clang-Tidy: modernize-use-ranges#5369
WeiqunZhang wants to merge 3 commits into
AMReX-Codes:developmentfrom
WeiqunZhang:modernize-use-ranges

Conversation

@WeiqunZhang

@WeiqunZhang WeiqunZhang commented Apr 21, 2026

Copy link
Copy Markdown
Member

modernize-use-ranges is not a required check because (1) clang <= 15 have bugs with std::ranges; (2) std::ranges::sort requrires std::sortable, which is stricter than operator<.

Disable readability-qualified-auto. It's just not right if we have to write auto* itlo = std::ranges::find(m_lobc[0], BCType::Dirichlet);. It's an iterator, not really a pointer, even if it's a pointer in a particular implementation.

@WeiqunZhang WeiqunZhang force-pushed the modernize-use-ranges branch 2 times, most recently from d86c7c6 to 0db0947 Compare June 12, 2026 20:08
@WeiqunZhang WeiqunZhang force-pushed the modernize-use-ranges branch 6 times, most recently from 8997d50 to 9ed2377 Compare June 12, 2026 22:27
@WeiqunZhang WeiqunZhang force-pushed the modernize-use-ranges branch from 9ed2377 to 6949899 Compare June 12, 2026 22:31
@WeiqunZhang WeiqunZhang marked this pull request as ready for review June 13, 2026 00:28
@WeiqunZhang WeiqunZhang requested a review from atmyers June 13, 2026 00:28
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