diff options
| author | Haojian Wu <hokein.wu@gmail.com> | 2020-04-21 09:57:06 +0200 |
|---|---|---|
| committer | Haojian Wu <hokein.wu@gmail.com> | 2020-04-21 10:53:35 +0200 |
| commit | 89d9912cbf45068770ac8c1e2ef97b74c3b662ab (patch) | |
| tree | 2be8b0dc35278baa57aba4cf4db22a2a6abeaef7 /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp | |
| parent | 3d9b53706fdfc15e53e0cd6823f45922e2c696db (diff) | |
[AST] dont invaliate VarDecl when the initializer contains errors.
Summary:
This patch contains 2 separate changes:
1) the initializer of a variable should play no part in decl "invalid" bit;
2) preserve the invalid initializer via recovery exprs;
With 1), we will regress the diagnostics (one big regression is that we loose
the "selected 'begin' function with iterator type" diagnostic in for-range stmt;
but with 2) together, we don't have regressions (the new diagnostics seems to be
improved).
Reviewers: sammccall
Reviewed By: sammccall
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D78116
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp')
0 files changed, 0 insertions, 0 deletions
