Microsoft extensions should be under a -Wmicrosoft-foo group.
Added in https://reviews.llvm.org/D75708.
There shouldn't be a reason to separate out void pointers since this is C++.
Differential D75752
[Sema] Move pointer to int cast warnings under -Wmicrosoft-cast aeubanks on Mar 6 2020, 8:21 AM. Authored by
Details Microsoft extensions should be under a -Wmicrosoft-foo group. There shouldn't be a reason to separate out void pointers since this is C++.
Diff Detail
Event TimelineComment Actions I agree with the reasoning, but this is likely to fire all over existing C++ code. In fact, the one we just added finds issues in Chrome The idea was that -Wpointer-int-cast was a new warning group, so it was fine to add new findings to it, but -Wmicrosoft-cast already exists. In this case, I would recommend adding some new -W flag. As for naming, -Wmicrosoft-pointer-to-int? It can still be a subgroup of -Wmicrosoft-cast. Comment Actions Specifically regarding Anyway, we should probably be consistent between this and https://reviews.llvm.org/D75643. I'm fine with keeping what we have, but then https://reviews.llvm.org/D75643 should probably go in. |