================
@@ -974,7 +974,7 @@ class Foo final {})cpp";
          HI.Name = "abc";
          HI.Kind = index::SymbolKind::Variable;
          HI.NamespaceScope = "";
-         HI.Definition = "int abc = <recovery - expr>()";
----------------
AaronBallman wrote:

Yeah, making a `RecoveryExpr` in these cases would be helpful (though 
potentially nontrivial). There was another case where we dropped a `ReturnStmt` 
rather than giving it a `RecoveryExpr` operand, and that caused follow-on 
diagnostics that were less than helpful.

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

Reply via email to