[clang-tools-extra] [clang-tidy] Fix when std::ranges::fix is offered on a pointer type in `modernize-use-ranges` (PR #226739)

Umut Zengin via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 28 09:46:20 PST 2026


================
@@ -268,13 +270,17 @@ void UseRangesCheck::check(const MatchFinder::MatchResult &Result) {
     for (const auto &[First, Second, Replace] : Sig) {
       auto ArgNode = ArgName + std::to_string(First);
       if (const auto *ArgExpr = Result.Nodes.getNodeAs<Expr>(ArgNode)) {
----------------
ZenginU wrote:

I feel like it might be too involved for this MR, but again I am happy to implement it in this change if needed. 

I can also create a follow-up issue.

https://github.com/llvm/llvm-project/pull/226739


More information about the cfe-commits mailing list