This is an archive of the discontinued LLVM Phabricator instance.

[AST][RecoveryExpr] Preserve the AST for invalid conditions.
ClosedPublic

Authored by hokein on Jun 4 2020, 7:12 AM.

Details

Summary

Tested with enabling "-frecovery-ast", only 1 failure, which is
an improvement of secondary diagnostic.

--
error: 'error' diagnostics seen but not expected:
  File /workspace/llvm-project/clang/test/SemaTemplate/instantiate-expr-3.cpp Line 68: invalid operands to binary expression ('N1::X' and 'int')
1 error generated.

--

Diff Detail

Event Timeline

hokein created this revision.Jun 4 2020, 7:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 4 2020, 7:12 AM
sammccall accepted this revision.Jun 5 2020, 8:27 AM

Nice!

This revision is now accepted and ready to land.Jun 5 2020, 8:27 AM
hokein updated this revision to Diff 270413.Jun 12 2020, 8:40 AM

rebase and adjust the test.

This revision was automatically updated to reflect the committed changes.