llvm-project/clang/lib/Index
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 Index: Remove unused internal header SimpleFormatContext.h, NFC 2020-12-04 15:10:27 -08:00
CommentToXML.cpp Avoid including FileManager.h from SourceManager.h 2020-03-11 13:53:12 -07:00
FileIndexRecord.cpp [index] Improve macro indexing support 2021-04-06 09:12:14 -07:00
FileIndexRecord.h [index] Improve macro indexing support 2021-04-06 09:12:14 -07:00
IndexBody.cpp [clang] RecursiveASTVisitor visits ObjCPropertyRefExpr's class receiver 2021-06-01 14:45:25 -04:00
IndexDecl.cpp [Index] Ignore nullptr decls for indexing 2021-05-06 13:12:26 -07:00
IndexSymbol.cpp [clang] p1099 using enum part 2 2021-06-08 11:11:46 -07:00
IndexTypeSourceInfo.cpp [clang] Do not consider the template arguments of bases to be bases themselves 2020-09-01 19:18:03 -04:00
IndexingAction.cpp Speculatively fix this harder and with improved spelling capabilities. 2021-05-27 09:54:09 -04:00
IndexingContext.cpp [index] Improve macro indexing support 2021-04-06 09:12:14 -07:00
IndexingContext.h [index] Improve macro indexing support 2021-04-06 09:12:14 -07:00
USRGeneration.cpp [index] Improve macro indexing support 2021-04-06 09:12:14 -07:00