summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseCXXInlineMethods.cpp
diff options
context:
space:
mode:
authorKaelyn Takata <rikka@google.com>2014-11-20 22:06:40 +0000
committerKaelyn Takata <rikka@google.com>2014-11-20 22:06:40 +0000
commitb16e632c64666bfab88518b369ecaab989a4915d (patch)
tree6eaba0dc0d1b23be2565cb80e4e7e173c7cdbef5 /clang/lib/Parse/ParseCXXInlineMethods.cpp
parent6f71ce2e212df2d0b834bf71ad128ea95508adbe (diff)
downloadbcm5719-llvm-b16e632c64666bfab88518b369ecaab989a4915d.tar.gz
bcm5719-llvm-b16e632c64666bfab88518b369ecaab989a4915d.zip
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<>). llvm-svn: 222464
Diffstat (limited to 'clang/lib/Parse/ParseCXXInlineMethods.cpp')
-rw-r--r--clang/lib/Parse/ParseCXXInlineMethods.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Parse/ParseCXXInlineMethods.cpp b/clang/lib/Parse/ParseCXXInlineMethods.cpp
index 2a2f3b10461..8469fb96911 100644
--- a/clang/lib/Parse/ParseCXXInlineMethods.cpp
+++ b/clang/lib/Parse/ParseCXXInlineMethods.cpp
@@ -336,6 +336,7 @@ void Parser::ParseLexedMethodDeclaration(LateParsedMethodDeclaration &LM) {
DefArgResult = ParseBraceInitializer();
} else
DefArgResult = ParseAssignmentExpression();
+ DefArgResult = Actions.CorrectDelayedTyposInExpr(DefArgResult);
if (DefArgResult.isInvalid())
Actions.ActOnParamDefaultArgumentError(LM.DefaultArgs[I].Param,
EqualLoc);
OpenPOWER on IntegriCloud