refactor: Fix clang-tidy readability-const-return-type violations#26935
Hidden character warning
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
|
Concept ACK. |
fa5f55c to
faa20bc
Compare
|
MSVC linker error: |
faa20bc to
fa7767a
Compare
|
Thanks, force pushed to remove |
hebasto
left a comment
There was a problem hiding this comment.
ACK fa7767ae278baa7074735c9eec070d992d2884ff
fa7767a to
3333464
Compare
3333464 to
fa451d4
Compare
stickies-v
left a comment
There was a problem hiding this comment.
utACK fa451d4
I verified that all the removed const qualifiers were top-level, and as such can be safely removed. Checking this with clang-tidy makes the review process more efficient.
hebasto
left a comment
There was a problem hiding this comment.
ACK fa451d4.
Maybe add a commit to address #26705 (comment) as well?
| auto& PickValue(FuzzedDataProvider& fuzzed_data_provider, Collection& col) | ||
| { | ||
| const auto sz = col.size(); | ||
| auto sz{col.size()}; |
There was a problem hiding this comment.
A note: it looks not related to the readability-const-return-type check, but it does a few lines below in ConsumeIntegralInRange<decltype(sz)>(0, sz - 1).
There was a problem hiding this comment.
Correct, decltype(sz) is const ..., which will be the return value of ConsumeIntegralInRange, and thus cause the readability-const-return-type fail
…n-type violations fa451d4 Fix clang-tidy readability-const-return-type violations (MarcoFalke) Pull request description: This comes up during review, so instead of wasting review cycles on this, just enforce it via CI ACKs for top commit: stickies-v: utACK fa451d4 hebasto: ACK fa451d4. Tree-SHA512: 144a85612f00ec43f7ea1fdaa11901ca981a9f0465a8849745712d741b201b9c3307118172ee0b8efd12bebf25bc6f32a6e2c908495e371f9ada0a917994f44e
This comes up during review, so instead of wasting review cycles on this, just enforce it via CI