ENUMERATOR declarations are checking for conflicts between new enumerator names and names in both the local scope and scopes that contain it. ENUMERATOR declarations belong to the local scope and so only a conflict with a name therein is an error. (In short, use FindInScope rather than FindSymbol.) Differential Revision: https://reviews.llvm.org/D142773
290 KiB
290 KiB