[clang] [clang][Parser] Preserve LHS in RecoveryExpr for binary operations statement boundaries. (PR #192535)

Nathan Ridge via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 17 22:17:30 PDT 2026


================
@@ -678,6 +666,10 @@ Improvements
 ^^^^^^^^^^^^
 - Improved substitution performance in concept checking. (#GH172266)
 
+- Clang now preserves the left-hand side of a binary expression (such as an
+  assignment or comparison) in a ``RecoveryExpr`` when the right-hand side fails
+  to parse. This improves IDE features like go-to-definition in ``clangd``. (#GH2640)
----------------
HighCommander4 wrote:

nit: the GitHub reference should probably reference the PR in this case (since the issue is in the clangd repository rather than llvm-project)

https://github.com/llvm/llvm-project/pull/192535


More information about the cfe-commits mailing list