llvm-project/clang/lib/ASTMatchers/Dynamic
Nathan Sidwell b2d0c16e91 [clang] p1099 using enum part 2
This implements the 'using enum maybe-qualified-enum-tag ;' part of
1099. It introduces a new 'UsingEnumDecl', subclassed from
'BaseUsingDecl'. Much of the diff is the boilerplate needed to get the
new class set up.

There is one case where we accept ill-formed, but I believe this is
merely an extended case of an existing bug, so consider it
orthogonal. AFAICT in class-scope the c++20 rule is that no 2 using
decls can bring in the same target decl ([namespace.udecl]/8). But we
already accept:

struct A { enum { a }; };
struct B : A { using A::a; };
struct C : B { using A::a;
using B::a; }; // same enumerator

this patch permits mixtures of 'using enum Bob;' and 'using Bob::member;' in the same way.

Differential Revision: https://reviews.llvm.org/D102241
2021-06-08 11:11:46 -07:00
..
CMakeLists.txt On Windows build, making the /bigobj flag global , instead of passing it per file. 2020-07-28 18:04:36 -05:00
Diagnostics.cpp Add clang-query support for mapAnyOf 2021-02-07 15:40:15 +00:00
Marshallers.cpp [openmp] Remove clause from OMPKinds.def and use OMP.td info 2020-12-17 14:08:12 -05:00
Marshallers.h [ASTMatchers][NFC] Use SmallVector when building variadic matcher descriptor 2021-03-23 16:38:45 +00:00
Parser.cpp Add clang-query support for mapAnyOf 2021-02-07 15:40:15 +00:00
Registry.cpp [clang] p1099 using enum part 2 2021-06-08 11:11:46 -07:00
VariantValue.cpp Make it possible to store NodeKinds in ArgKind 2021-02-07 14:00:45 +00:00