sberg added a comment. doesnt this make -Wshadow more aggressive for enumerators than for other entities?
~ cat test17.cc struct S1; struct S2; struct S3 { void S1(); enum { S2 }; }; ~ llvm/inst/bin/clang++ -fsyntax-only -Wshadow test17.cc test17.cc:5:10: warning: declaration shadows a variable in the global namespace [-Wshadow] enum { S2 }; ^ test17.cc:2:8: note: previous declaration is here struct S2; ^ 1 warning generated. warns about enumerator S2 but not about similar function S1 (ran into such a new -Wshadow while compiling LibreOffice) https://reviews.llvm.org/D52400 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits