[PATCH] D21134: clang-tidy: new check readability-misplaced-array-index

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 9 05:53:19 PDT 2016


aaron.ballman added inline comments.

================
Comment at: test/clang-tidy/readability-misplaced-array-index.cpp:31
@@ +30,3 @@
+  x[10] = 0;
+  dostuff(0[0 + ABC]);
+}
----------------
Why is this considered to be "normal syntax" and not worth getting a diagnostic?


https://reviews.llvm.org/D21134





More information about the cfe-commits mailing list