[clang-tools-extra] [clang-tidy] Fix when std::ranges::fix is offered on a pointer type in `modernize-use-ranges` (PR #226739)
Baranov Victor via cfe-commits
cfe-commits at lists.llvm.org
Sun Sep 27 10:14:26 PDT 2026
================
@@ -11,7 +11,8 @@
void Positives() {
std::vector<int> I, J;
std::vector<std::unique_ptr<int>> K;
-
+ std::vector<int> PointerContainers[2];
+ std::vector<int> *P = PointerContainers;
// Expect to have no check messages
----------------
vbvictor wrote:
Just don't delete empty line between declarations and comments, diff will be cleaner.
https://github.com/llvm/llvm-project/pull/226739
More information about the cfe-commits
mailing list