Turn on -Wmicrosoft-enum-forward-reference by default.

clang-cl already errs or warns on everything that cl
warns on in /permissive- mode, except for enum foward
declarations (and ATL attributes).
So warn on enum forward declarations by default.

llvm-svn: 302190
This commit is contained in:
Nico Weber 2017-05-04 19:54:50 +00:00
parent e42b4d566e
commit 9ed65da6ad
1 changed files with 1 additions and 1 deletions

View File

@ -4759,7 +4759,7 @@ def ext_forward_ref_enum : Extension<
"ISO C forbids forward references to 'enum' types">; "ISO C forbids forward references to 'enum' types">;
def err_forward_ref_enum : Error< def err_forward_ref_enum : Error<
"ISO C++ forbids forward references to 'enum' types">; "ISO C++ forbids forward references to 'enum' types">;
def ext_ms_forward_ref_enum : Extension< def ext_ms_forward_ref_enum : ExtWarn<
"forward references to 'enum' types are a Microsoft extension">, "forward references to 'enum' types are a Microsoft extension">,
InGroup<MicrosoftEnumForwardReference>; InGroup<MicrosoftEnumForwardReference>;
def ext_forward_ref_enum_def : Extension< def ext_forward_ref_enum_def : Extension<