[clang] [Clang][C++26] Implement Pack Indexing (P2662R3). (PR #72644)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 15 06:19:57 PST 2024


================
@@ -1196,6 +1196,95 @@ void Parser::AnnotateExistingDecltypeSpecifier(const DeclSpec &DS,
   PP.AnnotateCachedTokens(Tok);
 }
 
+SourceLocation Parser::ParseIndexedTypeNamePack(DeclSpec &DS) {
+  assert(Tok.isOneOf(tok::annot_indexed_pack_type, tok::identifier) &&
----------------
cor3ntin wrote:

When we annotate the token, we go through this function (and once we parse a type, we convert it an annotation), and sometimes we use the type directly (destructor case)

https://github.com/llvm/llvm-project/pull/72644


More information about the cfe-commits mailing list