hokein wrote:

The current solution seems reasonable to me.

> somehow including the malformed block in the AST (by wrapping it in a 
> RecoveryExpr perhaps?)

`RecoveryExpr` is designed to preserve `Expr` nodes, so it can't be used to 
retain arbitrary AST nodes. In the case of `(^Ts)`, as far as I understand, 
`Ts` is parsed as a block-id, making RecoveryExpr inapplicable.

https://github.com/llvm/llvm-project/pull/110762
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to