ChuanqiXu9 wrote:

> I’m not sure whether we can move the anonymous-enum merge from the typedef 
> stage to before parsing the enum body. If so, typedef merging would no longer 
> need to repair the enum AST afterward.

We can't do that unless we lookup ahead much more till the name of the typedef. 
The point is explained before that we don't know the previous decl before we 
saw the name, where is too late.

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

Reply via email to