[clang] [clang-tools-extra] Remove delayed typo expressions (PR #143423)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 12 09:14:56 PDT 2025


================
@@ -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


More information about the cfe-commits mailing list