[PATCH 6/6] Wire up delayed typo correction to DiagnoseEmptyLookup and set up Sema::ActOnIdExpression to use the new functionality.
Kaelyn Takata
rikka at google.com
Fri Aug 22 16:01:22 PDT 2014
Among other things, this eliminates at least one redundant error case
and allows recovery in several cases where it wasn't possible before
(e.g. correcting a mistyped static_cast<>).
---
include/clang/Parse/Parser.h | 9 +++
include/clang/Sema/Sema.h | 4 +-
lib/Parse/ParseCXXInlineMethods.cpp | 1 +
lib/Parse/ParseDecl.cpp | 4 +-
lib/Parse/ParseDeclCXX.cpp | 2 +-
lib/Parse/ParseExpr.cpp | 28 ++++++---
lib/Parse/ParseExprCXX.cpp | 13 ++++-
lib/Parse/ParseObjc.cpp | 5 +-
lib/Parse/ParseOpenMP.cpp | 3 +-
lib/Parse/ParseStmt.cpp | 8 ++-
lib/Sema/SemaExpr.cpp | 110 ++++++++++++++++++++++++++++++++---
lib/Sema/SemaStmt.cpp | 19 ++++++
test/FixIt/fixit-unrecoverable.cpp | 4 +-
test/SemaCXX/typo-correction.cpp | 7 ++-
test/SemaTemplate/crash-10438657.cpp | 2 +-
15 files changed, 188 insertions(+), 31 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-Wire-up-delayed-typo-correction-to-DiagnoseEmptyLook.patch
Type: text/x-patch
Size: 21329 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140822/68e0bbf0/attachment.bin>
More information about the cfe-commits
mailing list