`MicrosoftExtensions` should control (and disable if `true`) certain warnings
alexrp opened this issue · comments
Some candidates (need to review each):
(see #37)-Wmicrosoft-abstract
-Wmicrosoft-anon-tag
(already controlled by-Wmicrosoft-charize
-fms-extensions
)(not supported in newer MSVC versions, and seems insane)-Wmicrosoft-comment-paste
(already controlled by-Wmicrosoft-cpp-macro
-fms-extensions
)(this is both a GNU and Microsoft extension, and controlled by appropriate flags)-Wmicrosoft-enum-forward-reference
(limited usefulness)-Wmicrosoft-explicit-constructor-call
(already controlled by-Wmicrosoft-fixed-enum
-fms-extensions
)(already controlled by-Wmicrosoft-flexible-array
-fms-extensions
)(I can't figure out what this even is, and it Clang doesn't seem to emit it)-Wmicrosoft-mutable-reference
(unnecessary as C++11 has-Wmicrosoft-sealed
final
)(Clang has code for this diagnostic, but I suspect it's broken)-Wmicrosoft-static-assert
-Wmicrosoft-union-member-reference
Trimmed down to -Wmicrosoft-anon-tag
and -Wmicrosoft-union-member-reference
.
-Wmicrosoft-abstract
will also need to be looked at in Clang 13 (see #37).