]> granicus.if.org Git - clang/commit
Wire up delayed typo correction to DiagnoseEmptyLookup and set up
authorKaelyn Takata <rikka@google.com>
Thu, 20 Nov 2014 22:06:40 +0000 (22:06 +0000)
committerKaelyn Takata <rikka@google.com>
Thu, 20 Nov 2014 22:06:40 +0000 (22:06 +0000)
commitb11b40a67ef9847447d3066fad06698dd9c317d2
treef70db662f7ba6f6e82e24fa5fdc977819d57aa86
parentdcc69e9eb1b2bbbd1cc714744345cb4165214af5
Wire up delayed typo correction to DiagnoseEmptyLookup and set up
Sema::ActOnIdExpression to use the new functionality.

Among other things, this allows recovery in several cases where it
wasn't possible before (e.g. correcting a mistyped static_cast<>).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@222464 91177308-0d34-0410-b5e6-96231b3b80d8
15 files changed:
include/clang/Parse/Parser.h
include/clang/Sema/Sema.h
lib/Parse/ParseCXXInlineMethods.cpp
lib/Parse/ParseDecl.cpp
lib/Parse/ParseDeclCXX.cpp
lib/Parse/ParseExpr.cpp
lib/Parse/ParseExprCXX.cpp
lib/Parse/ParseObjc.cpp
lib/Parse/ParseOpenMP.cpp
lib/Parse/ParseStmt.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaStmt.cpp
test/FixIt/fixit-unrecoverable.cpp
test/SemaCXX/typo-correction.cpp
test/SemaTemplate/crash-10438657.cpp