aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/TargetParser.cpp
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2021-05-04 07:59:17 -0700
committerNathan Sidwell <nathan@acm.org>2021-06-08 04:40:42 -0700
commit012898b92cad00e230a960a08a3f418628bec060 (patch)
treefaf70f2daddda298173ece55030edb6ffd44b992 /llvm/lib/Support/TargetParser.cpp
parent09e92c607cc94f3d088da2d13592f4e7100ba84a (diff)
downloadllvm-012898b92cad00e230a960a08a3f418628bec060.zip
llvm-012898b92cad00e230a960a08a3f418628bec060.tar.gz
llvm-012898b92cad00e230a960a08a3f418628bec060.tar.bz2
[clang] p1099 using enum part 1
This adds support for p1099's 'using SCOPED_ENUM::MEMBER;' functionality, bringing a member of an enumerator into the current scope. The novel feature here, is that there need not be a class hierarchical relationship between the current scope and the scope of the SCOPED_ENUM. That's a new thing, the closest equivalent is a typedef or alias declaration. But this means that Sema::CheckUsingDeclQualifier needs adjustment. (a) one can't call it until one knows the set of decls that are being referenced -- if exactly one is an enumerator, we're in the new territory. Thus it needs calling later in some cases. Also (b) there are two ways we hold the set of such decls. During parsing (or instantiating a dependent scope) we have a lookup result, and during instantiation we have a set of shadow decls. Thus two optional arguments, at most one of which should be non-null. Differential Revision: https://reviews.llvm.org/D100276
Diffstat (limited to 'llvm/lib/Support/TargetParser.cpp')
0 files changed, 0 insertions, 0 deletions