================
@@ -1238,6 +1238,13 @@ struct DeclaratorChunk {
 
   ParsedAttributesView AttrList;
 
+  /// Stores pointers to `Parser::LateParsedAttribute`. We use `void*` here
+  /// because `LateParsedAttribute` is a nested struct of `class Parser` and
+  /// cannot be forward-declared.
+  using LateAttrOpaquePtr = void *;
----------------
rapidsna wrote:

I can do that. `LateParsedAttribute` already inherits from 
`LateParsedDeclaration`, so we could just hoist `LateParsedDeclaration` out of 
Parser and use it directly here. That seems cleaner than introducing yet 
another base class. Would you be open to that if it doesn't introduce too 
invasive changes?

https://github.com/llvm/llvm-project/pull/166491
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to