[PATCH] D31130: B32239 clang-tidy should not warn about array to pointer decay on system macros

Alexander Kornienko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 22 06:04:32 PDT 2017


alexfh added a comment.

In https://reviews.llvm.org/D31130#707197, @aaron.ballman wrote:

> This change was reverted in r298470. The use of the <assert.h> include is a problem because this is not a clang-supplied header file. Also, there's a (good) question about what array decay is happening in the `assert(false)` test case.


I've made the test script add `-nostdinc++` in r298501, which should help catching this kind of an issue earlier.


https://reviews.llvm.org/D31130





More information about the cfe-commits mailing list