Change getRedeclContext() to support enumerations as another kind of transparent...
authorAaron Ballman <aaron@aaronballman.com>
Tue, 23 Oct 2018 19:44:51 +0000 (19:44 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Tue, 23 Oct 2018 19:44:51 +0000 (19:44 +0000)
commit5e7b1eae1303a95061dab857dccb0ff15d5f943a
tree1958e6ec7d9400dc282aa449550a398769ef87d2
parent503154615dac70491fef4797da6b35761320aaa1
Change getRedeclContext() to support enumerations as another kind of transparent context in C.

This change fixes PR15071 and ensures that enumerators redefined in a struct cannot conflict with enumerators defined outside of the struct.

llvm-svn: 345073
clang/lib/AST/DeclBase.cpp
clang/test/Sema/enum.c