[PATCH] D53771: [clang-tidy] Avoid C arrays check

Roman Lebedev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 10 07:34:37 PST 2018

lebedev.ri added inline comments.

Comment at: test/clang-tidy/modernize-avoid-c-arrays.cpp:32
+using k = int[4];
+// CHECK-MESSAGES: :[[@LINE-1]]:11: warning: do not declare C-style arrays, use std::array<> instead
JonasToth wrote:
> What happens for a variable of type `k`? Does the check warn, or only in the typedef?
Only here, on the typeloc, like the `Semi-FIXME` i just added there ^ states.

  rCTE Clang Tools Extra


More information about the cfe-commits mailing list