[clang-tools-extra] Add bugprone-loop-variable-copied-then-modified clang-tidy check. (PR #157213)

Piotr Zegar via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 16 14:37:28 PDT 2025


================
@@ -0,0 +1,54 @@
+// RUN: %check_clang_tidy %s bugprone-loop-variable-copied-then-modified %t --fix-notes \
----------------
PiotrZSL wrote:

missing tests with "auto&&" and "const auto"

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


More information about the cfe-commits mailing list