================ @@ -3578,7 +3578,7 @@ cleanupAroundReplacements(StringRef Code, const tooling::Replacements &Replaces, // We need to use lambda function here since there are two versions of // `cleanup`. auto Cleanup = [](const FormatStyle &Style, StringRef Code, - std::vector<tooling::Range> Ranges, + const std::vector<tooling::Range> &Ranges, ---------------- RKSimon wrote:
Since cleanup() takes an `ArrayRef<tooling::Range>` should this also? https://github.com/llvm/llvm-project/pull/87306 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits