[PATCH] D52949: [Diagnostics] Implement -Wsizeof-pointer-div

JF Bastien via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 9 21:05:32 PDT 2018


jfb added a comment.

Can you add tests with arrays?
The error message doesn't really say what to do instead. What's wrong? What's correct instead?
In C++17 and later we should suggest using `std::size` for some cases instead.


https://reviews.llvm.org/D52949





More information about the cfe-commits mailing list