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

Jonas Toth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 10 07:17:26 PST 2018

JonasToth added a comment.

from my side mostly ok. I think the typedef points should be clarified, but I dont see more issues.

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
What happens for a variable of type `k`? Does the check warn, or only in the typedef?

  rCTE Clang Tools Extra


More information about the cfe-commits mailing list