[clang-tools-extra] [clang-tidy][modernize-loop-convert]check isDependentSizedArrayType (PR #69062)
Piotr Zegar via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 14 11:22:43 PDT 2023
================
@@ -939,4 +939,13 @@ void fundamentalTypesTest() {
// CHECK-FIXES: for (double Double : Doubles)
}
+template <unsigned int p> void test() {
+ unsigned int test[3][p];
+ // Initialize to zero
+ for (unsigned int i = 0; i < p; ++i)
+ for (unsigned int j = 0; j < 3; ++j) // CHECK-MESSAGES: warning: use range-based for loop instead
----------------
PiotrZSL wrote:
put check messages and check fixes in new lines, use @LINE like in other checks
https://github.com/llvm/llvm-project/pull/69062
More information about the cfe-commits
mailing list