[clang-tools-extra] Add bugprone-loop-variable-copied-then-modified clang-tidy check. (PR #157213)
Baranov Victor via cfe-commits
cfe-commits at lists.llvm.org
Sat Sep 13 02:32:29 PDT 2025
================
@@ -0,0 +1,50 @@
+// RUN: %check_clang_tidy %s bugprone-loop-variable-copied-then-modified %t -- -config="{CheckOptions: {bugprone-loop-variable-copied-then-modified.IgnoreInexpensiveVariables: true}}" -- -I%S -std=c++!4
----------------
vbvictor wrote:
Please break line in 2 (around config)
https://github.com/llvm/llvm-project/pull/157213
More information about the cfe-commits
mailing list