This patch fix the scoping of enum literal. They were not resolving
to the right type.
It was not causing any problem as one is a copy of the other one.
The literal in the switch are resolving to Sema.h:5527
enum AccessResult { AR_accessible, AR_inaccessible, AR_dependent, AR_delayed };
Instead of SemaAccess.cpp:27
/// A copy of Sema's enum without AR_delayed. enum AccessResult { AR_accessible, AR_inaccessible, AR_dependent };
This issue was found by a new clang-tidy check (still on-going).