shafik added a comment. We can have unscoped enums in namespace and class scope and the enumerators won't leak out from those scopes. Thus we can have shadowing going on e.g.:
#include <iostream> enum GEnum {eOne=2,}; namespace A { enum AEnum {eOne=0,}; void g() {std::cout << eOne;} }; struct B { enum CEnum {eOne=1,}; void f() {std::cout << eOne;} }; int main() { std::cout << eOne ; A::g() ; B b; b.f() ; } godbolt: https://godbolt.org/z/h3r76n How does this change deal with those cases? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D94077/new/ https://reviews.llvm.org/D94077 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits