[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:31:52 PST 2026
================
@@ -11,6 +11,8 @@
void Positives() {
std::vector<int> I, J;
std::vector<std::unique_ptr<int>> K;
+ std::vector<int> PointerContainers[2];
----------------
ZenginU wrote:
The whole reason was that "(P + 1)" is not pointing to out of bounds (I know the code wont be executed).
I can remove it too, I will resolve the issue as is but please let me know if any concern.
https://github.com/llvm/llvm-project/pull/226739
More information about the cfe-commits
mailing list